summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 5 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index e3d5987..d85bb40 100644
--- a/Makefile
+++ b/Makefile
@@ -1,17 +1,18 @@
+EMACS ?= emacs
LOAD_PATH ?=
-BATCH = emacs -Q --batch $(LOAD_PATH)
+BATCH = $(EMACS) -Q --batch $(LOAD_PATH)
all: bog.elc bog-autoloads.el
.PHONY: test
-test: bog.elc
- @$(BATCH) -L . -l bog-tests.el \
+test: bog.elc bog-tests.elc
+ @$(BATCH) -L . -l bog-tests.elc \
--eval "(ert-run-tests-batch-and-exit '(not (tag interactive)))"
.PHONY: clean
clean:
- $(RM) bog.elc bog-autoloads.el
+ $(RM) bog.elc bog-autoloads.el bog-tests.elc
%.elc: %.el
@$(BATCH) -L . -f batch-byte-compile $<