-
Notifications
You must be signed in to change notification settings - Fork 7
/
Makefile
29 lines (24 loc) · 687 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
EMACS ?= emacs
CASK ?= cask
all:
${MAKE} clean
${MAKE} test
${MAKE} compile
${MAKE} test
${MAKE} clean
compile:
${CASK} exec ${EMACS} -Q --batch -L . --eval "(batch-byte-compile)" pophint.el
${CASK} exec ${EMACS} -Q --batch -L . --eval "(batch-byte-compile)" pophint-config.el
test:
ret=0 ; \
outfile=/tmp/.elisp-test-result ; \
for f in $$(find test -type f -name "*.el"); do \
test -f $$outfile && rm -f $$outfile ; \
${CASK} exec ${EMACS} -Q --batch -L . -l $$f -f batch-expectations $$outfile || ret=1 ; \
test -f $$outfile && cat $$outfile ; \
done ; \
test $$ret -eq 0
clean:
rm -f pophint.elc
rm -f pophint-config.elc
.PHONY: all compile test clean