]> code.delx.au - gnu-emacs-elpa/blob - Makefile
Cleanup dependency management.
[gnu-emacs-elpa] / Makefile
1 EMACS = emacs
2 DEPENDENCIES = libraries/ert-async.el libraries/js2-mode.el
3
4 all: uncompile compile test
5
6 bench: ${DEPENDENCIES}
7 ${EMACS} -Q \
8 -L . \
9 -L libraries \
10 -l context-coloring \
11 -l benchmark/context-coloring-benchmark \
12 -f context-coloring-benchmark-run
13
14 compile: ${DEPENDENCIES}
15 ${EMACS} -Q -batch \
16 -L . \
17 -L libraries \
18 -f batch-byte-compile *.el libraries/*.el
19
20 uncompile:
21 rm -f *.elc libraries/*.elc
22
23 clean: uncompile
24 rm -f ${DEPENDENCIES}
25
26 ${DEPENDENCIES}:
27 ${EMACS} -Q -batch \
28 -l scripts/download-dependencies.el \
29 -f download-dependencies
30
31 test: ${DEPENDENCIES}
32 ${EMACS} -Q -batch \
33 -L . \
34 -L libraries \
35 -l ert \
36 -l ert-async \
37 -l context-coloring \
38 -l test/context-coloring-test.el \
39 -f ert-run-tests-batch-and-exit
40
41 .PHONY: all bench compile uncompile clean test