Merge pull request #836 from jimporter/escaped-fontified-code-blocks
[markdown-mode.git] / tests / Makefile
blob4a542ff1267ddc3598a509a499293c3617af6c71
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 \
15 -l ert -l ../markdown-mode.elc -l markdown-test.elc \
16 --eval '(ert-run-tests-batch-and-exit $(SELECTOR))'
18 checkdoc:
19 $(EMACS) -Q --batch -l checkdoc-batch.el 2>&1 | \
20 grep -E "markdown-mode.el:[1-9]+" && exit 1 || exit 0
22 compile-all:
23 $(EMACS) -Q --batch \
24 --eval '(setq byte-compile-error-on-warn t)' \
25 -l ../markdown-mode.el \
26 -f batch-byte-compile ../markdown-mode.el markdown-test.el
28 html: $(TEST_HTML)
30 clean:
31 rm -f $(TEST_HTML) *.elc ../*.elc