-
Notifications
You must be signed in to change notification settings - Fork 37
/
Copy pathMakefile
40 lines (27 loc) · 846 Bytes
/
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
EMACS=emacs
EMACS23=emacs23
EMACS-OPTIONS=
ELS = flx.el
ELS += flx-ido.el
TEST_ELCS = $(wildcard tests/*.elc)
ELCS = $(ELS:.el=.elc)
.PHONY: test test-nw travis-ci show-version before-test clean
all: $(ELCS)
clean:
$(RM) $(ELCS) $(TEST_ELCS)
show-version:
echo "*** Emacs version ***"
echo "EMACS = `which ${EMACS}`"
${EMACS} --version
install-ert:
emacs --batch -L "${PWD}/lib/ert/lisp/emacs-lisp" --eval "(require 'ert)" || ( git clone git://github.com/ohler/ert.git lib/ert && cd lib/ert && git checkout 00aef6e43 )
before-test: show-version install-ert
test: before-test
${EMACS} -Q -L . -l tests/run-test.el
test-nw: before-test
${EMACS} -Q -nw -L . -l tests/run-test.el
travis-ci: before-test
echo ${EMACS-OPTIONS}
${EMACS} -batch -Q -l tests/run-test.el
%.elc: %.el
${EMACS} -batch -Q -L . -f batch-byte-compile $<