]> code.delx.au - gnu-emacs-elpa/blobdiff - packages/hydra/Makefile
Make sure not to lose the minibuffer-prompt face
[gnu-emacs-elpa] / packages / hydra / Makefile
index 97bcea6d911b3e85c270ac8297053d8800406384..13fd61887cc3945f9b062fb3d2fda2aed2100c4f 100644 (file)
@@ -1,12 +1,22 @@
-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