summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2015-02-19 23:21:09 -0500
committerKyle Meyer <kyle@kyleam.com>2015-02-19 23:21:09 -0500
commitd5480dae39e9c13acf5762b752b0a4c2b0136c54 (patch)
tree2a4f13e9aca82be5d1a3c37a0f8e57a761ae25e1 /Makefile
parent91a0de13b14039e262c39133b7766ee1c209f545 (diff)
downloadbog-d5480dae39e9c13acf5762b752b0a4c2b0136c54.tar.gz
Makefile: Fix batch test run for travis
Commit 9e80dc263 redefined the EMACS variable in the Makefile to include the --batch flag, but this is overridden in .travis.yml, so specify the flags separately.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 5 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 79ead40..5704e62 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,5 @@
-EMACS = emacs -Q --batch
+EMACS = emacs
+BATCH := $(EMACS) -Q --batch
name = bog
main_el := $(name).el
main_elc = $(main_el)c
@@ -10,7 +11,7 @@ all: elc autoloads
autoloads: $(AUTOLOADS_FILE)
$(AUTOLOADS_FILE): $(main_el)
- @$(EMACS) -L . --eval \
+ @$(BATCH) -L . --eval \
"(let (make-backup-files) \
(update-file-autoloads \"$(CURDIR)/$<\" t \"$(CURDIR)/$@\"))"
@@ -34,9 +35,9 @@ help:
.PHONY: test
test: $(main_elc)
- @$(EMACS) -L . -l bog-tests \
+ @$(BATCH) -L . -l bog-tests \
--eval "(ert-run-tests-batch-and-exit '(not (tag interactive)))"
%.elc: %.el
- @$(EMACS) -L . -f batch-byte-compile $<
+ @$(BATCH) -L . -f batch-byte-compile $<