X-Git-Url: https://code.delx.au/gnu-emacs-elpa/blobdiff_plain/3673f3dbfcce9157002d969c101a9e669c1e2e95..a7b8100b52925d82aa1d6fd8606a537ea88b91b9:/packages/hydra/Makefile diff --git a/packages/hydra/Makefile b/packages/hydra/Makefile index 4b6451f4f..dd3a762e6 100644 --- a/packages/hydra/Makefile +++ b/packages/hydra/Makefile @@ -1,5 +1,5 @@ -EMACS = emacs -# EMACS = emacs-24.3 +emacs ?= emacs +# emacs = emacs-24.3 LOAD = -l lv.el -l hydra.el -l hydra-test.el @@ -8,11 +8,15 @@ LOAD = -l lv.el -l hydra.el -l hydra-test.el 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