aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorFrank Fischer <frank.fischer@mathematik.tu-chemnitz.de>2011-03-29 13:09:37 +0200
committerFrank Fischer <frank.fischer@mathematik.tu-chemnitz.de>2011-03-29 13:09:37 +0200
commita6354b6d085caff91d7b98111ac62647d997059f (patch)
tree64996f1effed4077c94b64a432507d220c73960c /Makefile
parent9ff18515bd62f3854a04c323a1ed4bc5c0e49e8a (diff)
Add EMACS variable to Makefile
This allows to run the Makefile with different Emacs version, e.g., make EMACS=emacs22
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 6 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index af99057..93b5e6d 100644
--- a/Makefile
+++ b/Makefile
@@ -1,14 +1,15 @@
SHELL = /bin/bash
+EMACS = emacs
.PHONY: all compile indent test tests clean emacs term terminal
all: compile
compile: clean
- emacs --batch -Q -L . -f batch-byte-compile evil*.el
+ $(EMACS) --batch -Q -L . -f batch-byte-compile evil*.el
indent: clean
- emacs --batch evil*.el -Q -L . -l evil-tests.el \
+ $(EMACS) --batch evil*.el -Q -L . -l evil-tests.el \
--eval "(dolist (buffer (reverse (buffer-list))) \
(when (buffer-file-name buffer) \
(set-buffer buffer) \
@@ -22,7 +23,7 @@ indent: clean
test: compile tests
tests:
- emacs --batch -Q -L . -l evil-tests.el -f ert-run-tests-batch-and-exit
+ $(EMACS) --batch -Q -L . -l evil-tests.el -f ert-run-tests-batch-and-exit
clean:
rm -f *~
@@ -30,7 +31,7 @@ clean:
rm -f *.elc
emacs: clean
- emacs -Q -L . -l evil-tests.el --eval "(evil-mode 1)" \
+ $(EMACS) -Q -L . -l evil-tests.el --eval "(evil-mode 1)" \
--eval "(if (y-or-n-p-with-timeout \"Run tests? \" 2 t) \
(ert-run-tests-interactively t) \
(message \"You can run the tests at any time with \`M-x evil-tests-run\'\"))" &
@@ -38,4 +39,4 @@ emacs: clean
term: terminal
terminal: clean
- emacs -nw -Q -L . -l evil-tests.el --eval "(evil-mode 1)" --eval "(ert-run-tests-interactively t)"
+ $(EMACS) -nw -Q -L . -l evil-tests.el --eval "(evil-mode 1)" --eval "(ert-run-tests-interactively t)"