aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVegard Øye <vegard_oye@hotmail.com>2011-03-04 22:23:48 +0100
committerVegard Øye <vegard_oye@hotmail.com>2011-03-04 22:23:48 +0100
commitcde2e8870d6de28ab855ac3ea7969b3bfad45bff (patch)
tree517f34d04f92012ce2246e9987c2a016c975ec1a
parent9c38fb8a7575ae02cccd977e4e3e346c628e43d6 (diff)
Make compilation a prerequisite for "make test"
This prevents outdated .elc files from sabotaging the tests. Testing without compiling is achieved with the plural, "make tests".
-rw-r--r--Makefile11
1 files changed, 10 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 74f859a..abc5437 100644
--- a/Makefile
+++ b/Makefile
@@ -1,11 +1,20 @@
+SHELL = /bin/sh
+
+.PHONY: all
all: compile
+.PHONY: compile
compile: clean
emacs --batch -Q -L . -f batch-byte-compile evil*.el
-test:
+.PHONY: test
+test: compile tests
+
+.PHONY: tests
+tests:
emacs --batch -Q -L . -l evil-tests.el -f ert-run-tests-batch-and-exit
+.PHONY: clean
clean:
rm -f *~
rm -f \#*\#