]> code.delx.au - gnu-emacs-elpa/blob - Makefile
Merge branch 'elisp'
[gnu-emacs-elpa] / Makefile
1 CASK = cask
2 EMACS = emacs
3 DEPENDENCIES = .cask/
4 SCOPIFIER_PORT = $$(lsof -t -i :6969)
5 KILL_SCOPIFIER = if [ -n "${SCOPIFIER_PORT}" ]; then kill ${SCOPIFIER_PORT}; fi
6
7 all: uncompile compile test
8
9 bench: ${DEPENDENCIES}
10 ${CASK} exec ${EMACS} -Q \
11 -L . \
12 -l context-coloring \
13 -l benchmark/context-coloring-benchmark.el \
14 -f context-coloring-benchmark-run
15
16 compile: ${DEPENDENCIES}
17 ${CASK} exec ${EMACS} -Q -batch \
18 -L . \
19 -f batch-byte-compile *.el
20
21 uncompile:
22 rm -f *.elc
23
24 clean: uncompile
25 rm -rf ${DEPENDENCIES}
26
27 ${DEPENDENCIES}:
28 ${CASK}
29
30 test: ${DEPENDENCIES}
31 ${KILL_SCOPIFIER}
32 ${CASK} exec ${EMACS} -Q -batch \
33 -L . \
34 -l ert \
35 -l ert-async \
36 -l test/context-coloring-coverage.el \
37 -f context-coloring-coverage-ci-init \
38 -l test/context-coloring-test.el \
39 -f ert-run-tests-batch-and-exit
40
41 cover: ${DEPENDENCIES}
42 ${KILL_SCOPIFIER}
43 ${CASK} exec ${EMACS} -Q -batch \
44 -L . \
45 -l ert \
46 -l ert-async \
47 -l test/context-coloring-coverage.el \
48 -f context-coloring-coverage-local-init \
49 -l test/context-coloring-test.el \
50 -f ert-run-tests-batch-and-exit
51
52 .PHONY: all bench compile uncompile clean test cover