dotemacs

My Emacs configuration
git clone git://git.entf.net/dotemacs
Log | Files | Refs | LICENSE

Makefile (1015B)


      1 EMACS=emacs
      2 MARKDOWN=Markdown.pl
      3 
      4 .SUFFIXES: .text .html
      5 .PHONY: test
      6 
      7 TEST_SRCS = $(wildcard *.text)
      8 TEST_HTML = $(TEST_SRCS:.text=.html)
      9 
     10 .text.html:
     11 	$(MARKDOWN) < $< > $@
     12 
     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))'
     17 
     18 checkdoc:
     19 	$(EMACS) -Q --batch -l checkdoc-batch.el 2>&1 | \
     20 	    grep -E "markdown-mode.el:[1-9]+" && exit 1 || exit 0
     21 
     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
     27 
     28 html: $(TEST_HTML)
     29 
     30 clean:
     31 	rm -f $(TEST_HTML) *.elc ../*.elc
     32 
     33 evm:
     34 	$(MAKE) test EMACS="$(shell evm bin emacs-25.1)"
     35 	$(MAKE) test EMACS="$(shell evm bin emacs-25.2)"
     36 	$(MAKE) test EMACS="$(shell evm bin emacs-25.3)"
     37 	$(MAKE) test EMACS="$(shell evm bin emacs-26.1)"
     38 	$(MAKE) test EMACS="$(shell evm bin emacs-26.2)"
     39 	$(MAKE) test EMACS="$(shell evm bin emacs-26.3)"