aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorVegard Øye <vegard_oye@hotmail.com>2011-03-21 15:57:34 +0100
committerVegard Øye <vegard_oye@hotmail.com>2011-03-21 15:57:34 +0100
commit98ae47776ef692c7292ebe2ef583ba3e3a0be933 (patch)
treedb3ca67e7002c9dce90359269f961ef59be607fe /Makefile
parent912cb63fd07ecf1bce46e299d68760d56e7c80b7 (diff)
Add "y or n" prompt to "make emacs" rule
Unless one answers "y" within two seconds, the tests are skipped. They can be run manually with `M-x evil-tests-run'.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index fb85381..4f9bc22 100644
--- a/Makefile
+++ b/Makefile
@@ -22,7 +22,10 @@ clean:
.PHONY: emacs
emacs: clean
- emacs -Q -L . -l evil-tests.el --eval "(evil-mode 1)" --eval "(ert-run-tests-interactively t)" &
+ emacs -Q -L . -l evil-tests.el --eval "(evil-mode 1)" \
+--eval "(if (y-or-n-p-with-timeout \"Run tests? \" 2 nil) \
+(ert-run-tests-interactively t) \
+(message \"You can run the tests at any time with \`M-x evil-tests-run\'\"))" &
.PHONY: term
term: terminal