forked from company-mode/company-mode
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
43 lines (31 loc) · 1.06 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
40
41
42
43
EMACS = emacs
ALL_TARGETS = help package clean test test-gui test-batch compile compile-warn
TAR_OPTIONS = cjvf
ifneq ($(shell uname -s), Darwin)
TAR_OPTIONS += --mode 644
endif
.PHONY: ${ALL_TARGETS}
help:
@echo Targets:
@for t in ${ALL_TARGETS}; do echo "- "$$t; done
package: *.el
@VERSION=$$(awk '/Version:/{print $$3;exit}' company.el); \
FILES=$$(find . \! -name .\* -a \( -maxdepth 1 -name \*.el -o -name icons \) ); \
tar ${TAR_OPTIONS} company-$$VERSION.tar.bz2 $$FILES
clean:
@rm -rf company-*.tar.bz2 *.elc test/*.elc
test:
${EMACS} -Q -nw -L . -l test/all.el \
--eval "(let (pop-up-windows) (ert '(not (tag gui))))"
test-gui:
${EMACS} -Q -L . -l test/all.el \
--eval "(let (pop-up-windows) (ert t))"
test-batch:
${EMACS} -Q --batch -L . -l test/all.el \
--eval "(ert-run-tests-batch-and-exit '(not (or (tag interactive) (tag gui))))"
compile:
${EMACS} -Q --batch -L . -f batch-byte-compile company.el company-*.el
compile-warn:
${EMACS} -Q --batch -L . \
--eval "(setq byte-compile-error-on-warn t)" \
-f batch-byte-compile company*.el test/*.el