11EMACS ?= emacs
22CASK ?= cask
3- ELS = lisp/php.el
4- ELS += lisp/php-align.el
5- ELS += lisp/php-complete.el
6- ELS += lisp/php-defs.el
7- ELS += lisp/php-face.el
8- ELS += lisp/php-flymake.el
9- ELS += lisp/php-format.el
10- ELS += lisp/php-ide-phpactor.el
11- ELS += lisp/php-ide.el
12- ELS += lisp/php-local-manual.el
13- ELS += lisp/php-mode-debug.el
14- ELS += lisp/php-mode.el
15- ELS += lisp/php-project.el
16- AUTOLOADS = php-mode-autoloads.el
17- ELCS = $(ELS:.el=.elc )
3+ EASK ?= eask
184
19- % .elc : % .el
20- $(EMACS ) --batch -L lisp/ -f batch-byte- compile $<
5+ compile :
6+ $(EASK ) compile
217
228all : autoloads $(ELCS ) authors
239
@@ -34,19 +20,14 @@ AUTHORS.md: etc/git/AUTHORS.md.in .mailmap
3420 && printf " FINISHED\n" ; ) \
3521 || printf " FAILED (non-fatal)\n"
3622
37- autoloads : $(AUTOLOADS )
23+ autoloads :
24+ $(EASK ) generate autoloads
3825
39- $(AUTOLOADS ) : $(ELS )
40- $(EMACS ) --batch -L lisp/ --eval \
41- " (let ((user-emacs-directory default-directory)) \
42- (require ' package) \
43- (package-generate-autoloads \" php-mode\" (expand-file-name \" lisp\" )))"
44-
45- .cask : Cask
46- $(CASK ) install
26+ .eask : Eask
27+ $(EASK ) install
4728
4829clean :
49- rm -f $( ELCS ) $( AUTOLOADS )
30+ $( EASK ) clean all
5031
5132# Perform any operations that will be useful for developers
5233# who contribute to PHP Mode.
6647# for an example of using a script like this with the 'git bisect run'
6748# command.
6849test : clean all
69- touch tests/project/1/.git
70- $(EMACS ) --batch -l lisp/php-mode-autoloads.el --eval \
71- " (let ((default-directory (expand-file-name \" .cask\" default-directory))) \
72- (normal-top-level-add-subdirs-to-load-path))" \
73- -l tests/php-mode-test.el -f ert-run-tests-batch-and-exit
50+ $(EASK ) test ert ./tests/php-mode-test.el
7451
7552.PHONY : all authors autoloads clean test
0 commit comments