Debian Codegraph @

tools/editors/emacs/tests/Makefile

raw symbols SCIP
1 #!/usr/bin/env make
2
3 EMACS = /usr/bin/emacs
4 ERT = ~/lib/emacs/ert
5 RST_EL = ../rst.el
6
7 EMACS_ERT_PFX = $(EMACS) --batch --quick --directory=$(ERT) --load=ert.el
8 EMACS_ERT_SFX = --funcall=ert-run-tests-batch-and-exit
9
10 ERT_TESTS := $(filter-out ert-%,$(wildcard *.el))
11
12 EMACS_COMPILE_PFX = $(EMACS) --batch --quick --eval '(progn \
13 (setq byte-compile-error-on-warn t) \
14 (kill-emacs (if (byte-compile-file
15 EMACS_COMPILE_SFX = ) 0 1)))'
16
17 all: compile tests
18
19 tests:
20 $(EMACS_ERT_PFX) $(addprefix -l ,$(ERT_TESTS)) $(EMACS_ERT_SFX)
21
22 compile:
23 $(EMACS_COMPILE_PFX) "$(RST_EL)" $(EMACS_COMPILE_SFX)
24
25 clean: