Permalink
Browse files

Makefile: call Emacs with -Q; use $(BATCH) instead of direct call.

Using a variable like $(BATCH) should make it easier to adjust Emacs
flags.

Signed-off-by: Rüdiger Sonderfeld <ruediger@c-plusplus.de>
  • Loading branch information...
ruediger committed Dec 12, 2012
1 parent 341abe2 commit b4c37b1fff90039a05e2a0b596f4ade58dac7daf
Showing with 3 additions and 2 deletions.
  1. +3 −2 Makefile
View
@@ -1,4 +1,5 @@
EMACS = emacs
+BATCH = $(EMACS) --batch -Q
ELFILES = \
haskell-c.el \
@@ -30,7 +31,7 @@ ELCFILES = $(ELFILES:.el=.elc)
AUTOLOADS = haskell-site-file.el
%.elc: %.el
- $(EMACS) --batch --eval '(setq load-path (cons "." load-path))' \
+ $(BATCH) --eval '(setq load-path (cons "." load-path))' \
-f batch-byte-compile $<
.PHONY: all compile info dist clean
@@ -53,7 +54,7 @@ PACKAGE=haskell-mode
$(AUTOLOADS): $(ELFILES)
[ -f $@ ] || echo ' ' >$@
- $(EMACS) --batch --eval '(setq generated-autoload-file "'`pwd`'/$@")' -f batch-update-autoloads "."
+ $(BATCH) --eval '(setq generated-autoload-file "'`pwd`'/$@")' -f batch-update-autoloads "."
##

0 comments on commit b4c37b1

Please sign in to comment.