forked from emacs-php/phpactor.el
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
39 lines (31 loc) · 1.01 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
EMACS ?= emacs
CASK ?= cask
ELS = phpactor.el company-phpactor.el
AUTOLOADS = phpactor-autoloads.el
ELCS = $(ELS:.el=.elc)
%.elc: %.el
$(EMACS) -Q -batch -L . --eval \
"(let ((default-directory (expand-file-name \".cask\" default-directory))) \
(require 'package) \
(normal-top-level-add-subdirs-to-load-path))" \
-f package-initialize -f batch-byte-compile $<
all: .cask $(ELCS) autoloads
autoloads: $(AUTOLOADS)
$(AUTOLOADS): $(ELCS)
$(EMACS) -Q -batch -L . --eval \
"(progn \
(require 'package) \
(normal-top-level-add-subdirs-to-load-path) \
(package-generate-autoloads \"phpactor\" default-directory))"
.cask: Cask
$(CASK) install
test: .cask $(ELCS)
$(EMACS) -Q -batch -L . --eval \
"(let ((default-directory (expand-file-name \".cask\" default-directory))) \
(normal-top-level-add-subdirs-to-load-path) \
(require 'buttercup))" \
--eval "(setq warning-minimum-log-level :debug)" \
-f buttercup-run-discover
clean:
rm -f $(ELCS) $(AUTOLOADS)
.PHONY: all autoloads clean test