emacs-ipython-notebook/tests/Makefile
John Miller b431f57ce1 Squashed 'lib/markdown-mode/' content from commit 3f11a4a
git-subtree-dir: lib/markdown-mode
git-subtree-split: 3f11a4a7609ba2a507ee10f491bdadab28e9b985
2016-09-09 09:47:48 -05:00

40 lines
1.1 KiB
Makefile

EMACS=emacs
MARKDOWN=Markdown.pl
.SUFFIXES: .text .html
.PHONY: test
TEST_SRCS = $(wildcard *.text)
TEST_HTML = $(TEST_SRCS:.text=.html)
.text.html:
$(MARKDOWN) < $< > $@
test: compile-all checkdoc
$(EMACS) -Q --batch $(CL) \
--eval '(setq byte-compile-warnings (quote (not cl-functions)))' \
-l ert -l ../markdown-mode.elc -l markdown-test.elc \
-f ert-run-tests-batch-and-exit
checkdoc:
$(EMACS) -Q --batch $(CL) -l checkdoc-batch.el 2>&1 | \
grep -E "markdown-mode.el:[1-9]+" && exit 1 || exit 0
compile-all:
$(EMACS) -Q --batch $(CL) \
--eval '(setq byte-compile-warnings (quote (not cl-functions)))' \
--eval '(setq byte-compile-error-on-warn t)' \
-l ../markdown-mode.el \
-f batch-byte-compile ../markdown-mode.el markdown-test.el
html: $(TEST_HTML)
clean:
rm -f $(TEST_HTML) *.elc ../*.elc
evm:
$(MAKE) test EMACS="$(shell evm bin emacs-24.1)" CL="-l cl-lib-0.5.el"
$(MAKE) test EMACS="$(shell evm bin emacs-24.2)" CL="-l cl-lib-0.5.el"
$(MAKE) test EMACS="$(shell evm bin emacs-24.3)" CL=""
$(MAKE) test EMACS="$(shell evm bin emacs-24.4)" CL=""
$(MAKE) test EMACS="$(shell evm bin emacs-24.5)" CL=""