-EMACS = emacs
-# EMACS = emacs-24.3
+emacs ?= emacs
+# emacs = emacs-24.3
-LOAD = -l hydra.el -l hydra-test.el
+LOAD = -l lv.el -l hydra.el -l hydra-test.el
.PHONY: all test clean
all: test
test:
- $(EMACS) -batch $(LOAD) -f ert-run-tests-batch-and-exit
+ @echo "Using $(shell which $(emacs))..."
+ $(emacs) -batch $(LOAD) -f ert-run-tests-batch-and-exit
-compile:
- $(EMACS) -q $(LOAD) -l init.el --eval "(progn (mapc #'byte-compile-file '(\"hydra.el\" \"init.el\")) (switch-to-buffer \"*Compile-Log*\") (ert t))"
+run:
+ $(emacs) -q $(LOAD) -l hydra-init.el
make clean
+compile:
+ $(emacs) -batch $(LOAD) -l hydra-init.el
+
clean:
rm -f *.elc