Makefile (347B)
1 .PHONY : test 2 3 emacs ?= emacs 4 CASK ?= cask 5 6 LOADPATH = -L . 7 8 ELPA_DIR = \ 9 .cask/$(shell $(emacs) -Q --batch --eval '(princ emacs-version)')/elpa 10 11 test: elpa 12 $(CASK) exec $(emacs) -Q -batch $(LOADPATH) \ 13 -l which-key-tests.el -f ert-run-tests-batch-and-exit 14 15 elpa: $(ELPA_DIR) 16 $(ELPA_DIR): Cask 17 $(CASK) install 18 mkdir -p $(ELPA_DIR) 19 touch $@