File: Makefile

package info (click to toggle)
python-docutils 0.14%2Bdfsg-4
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 8,976 kB
  • sloc: python: 44,718; lisp: 14,476; xml: 1,782; sh: 167; makefile: 150
file content (25 lines) | stat: -rw-r--r-- 611 bytes parent folder | download | duplicates (7)
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
#!/usr/bin/env make

EMACS = /usr/bin/emacs
ERT = ~/lib/emacs/ert
RST_EL = ../rst.el

EMACS_ERT_PFX = $(EMACS) --batch --quick --directory=$(ERT) --load=ert.el
EMACS_ERT_SFX = --funcall=ert-run-tests-batch-and-exit

ERT_TESTS := $(filter-out ert-%,$(wildcard *.el))

EMACS_COMPILE_PFX = $(EMACS) --batch --quick --eval '(progn		\
    (setq byte-compile-error-on-warn t)					\
    (kill-emacs (if (byte-compile-file
EMACS_COMPILE_SFX = ) 0 1)))'

all: compile tests

tests:
	$(EMACS_ERT_PFX) $(addprefix -l ,$(ERT_TESTS)) $(EMACS_ERT_SFX)

compile:
	$(EMACS_COMPILE_PFX) "$(RST_EL)" $(EMACS_COMPILE_SFX)

clean: