-EMACS = emacs
-# EMACS = emacs-24.3
+emacs ?= emacs
+# emacs = emacs-24.3
+
+LOAD = -l lv.el -l hydra.el -l hydra-test.el
.PHONY: all test clean
all: test
test:
- $(EMACS) -batch -l hydra.el -l hydra-test.el -f ert-run-tests-batch-and-exit
+ @echo "Using $(shell which $(emacs))..."
+ $(emacs) -batch $(LOAD) -f ert-run-tests-batch-and-exit
+
+run:
+ $(emacs) -q $(LOAD) -l targets/hydra-init.el
+ make clean
+
+compile:
+ $(emacs) -batch $(LOAD) -l targets/hydra-init.el
clean:
rm -f *.elc