1
1
EMACS ?= emacs
2
2
CASK ?= 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
18
4
19
- % .elc : % .el
20
- $(EMACS ) --batch -L lisp/ -f batch-byte- compile $<
5
+ compile :
6
+ $(EASK ) compile
21
7
22
8
all : autoloads $(ELCS ) authors
23
9
@@ -34,19 +20,14 @@ AUTHORS.md: etc/git/AUTHORS.md.in .mailmap
34
20
&& printf " FINISHED\n" ; ) \
35
21
|| printf " FAILED (non-fatal)\n"
36
22
37
- autoloads : $(AUTOLOADS )
23
+ autoloads :
24
+ $(EASK ) generate autoloads
38
25
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
47
28
48
29
clean :
49
- rm -f $( ELCS ) $( AUTOLOADS )
30
+ $( EASK ) clean all
50
31
51
32
# Perform any operations that will be useful for developers
52
33
# who contribute to PHP Mode.
66
47
# for an example of using a script like this with the 'git bisect run'
67
48
# command.
68
49
test : 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
74
51
75
52
.PHONY : all authors autoloads clean test
0 commit comments