Add links to kill unused reference lines
[markdown-mode.git] / tests / Makefile
blob66a9cf2d1aa4fb93713aeb1b6a20e3338759b74c
1 EMACS=emacs
2 MARKDOWN=Markdown.pl
4 .SUFFIXES: .text .html
5 .PHONY: test
7 TEST_SRCS = $(wildcard *.text)
8 TEST_HTML = $(TEST_SRCS:.text=.html)
10 .text.html:
11 $(MARKDOWN) < $< > $@
13 test: compile-all checkdoc
14 $(EMACS) -Q --batch $(CL) \
15 --eval '(setq byte-compile-warnings (quote (not cl-functions)))' \
16 -l ert -l ../markdown-mode.elc -l markdown-test.elc \
17 --eval '(ert-run-tests-batch-and-exit $(SELECTOR))'
19 checkdoc:
20 $(EMACS) -Q --batch $(CL) -l checkdoc-batch.el 2>&1 | \
21 grep -E "markdown-mode.el:[1-9]+" && exit 1 || exit 0
23 compile-all:
24 $(EMACS) -Q --batch $(CL) \
25 --eval '(setq byte-compile-warnings (quote (not cl-functions)))' \
26 --eval '(setq byte-compile-error-on-warn t)' \
27 -l ../markdown-mode.el \
28 -f batch-byte-compile ../markdown-mode.el markdown-test.el
30 html: $(TEST_HTML)
32 clean:
33 rm -f $(TEST_HTML) *.elc ../*.elc
35 evm:
36 $(MAKE) test EMACS="$(shell evm bin emacs-24.1)" CL="-l cl-lib-0.5.el"
37 $(MAKE) test EMACS="$(shell evm bin emacs-24.2)" CL="-l cl-lib-0.5.el"
38 $(MAKE) test EMACS="$(shell evm bin emacs-24.3)" CL=""
39 $(MAKE) test EMACS="$(shell evm bin emacs-24.4)" CL=""
40 $(MAKE) test EMACS="$(shell evm bin emacs-24.5)" CL=""
41 $(MAKE) test EMACS="$(shell evm bin emacs-25.1)" CL=""
42 $(MAKE) test EMACS="$(shell evm bin emacs-25.2)" CL=""