]> code.delx.au - gnu-emacs/commitdiff
Automate 'make all' in test/indent
authorDmitry Gutov <dgutov@yandex.ru>
Tue, 10 Mar 2015 00:39:01 +0000 (02:39 +0200)
committerDmitry Gutov <dgutov@yandex.ru>
Tue, 10 Mar 2015 00:39:01 +0000 (02:39 +0200)
test/ChangeLog
test/indent/Makefile

index 876b9462611e6c794e04b40cd0bb7f3397a12974..e51dddc05f1be65372c5d4f298f1be1fc2776cfd 100644 (file)
@@ -1,3 +1,9 @@
+2015-03-09  Dmitry Gutov  <dgutov@yandex.ru>
+
+       * indent/Makefile: Call 'rm' with '-f'.  Default EMACS to
+       '../../src/emacs'.  Remove *.new in 'clean'.  Set 'all' target to
+       run all examples.
+
 2015-03-09  Nicolas Petton <nicolas@petton.fr>
 
        * automated/seq-tests.el (test-seq-into): Add a test for seq-into.
index 9e75f3dad5753d16eaeae558197e6b17cf4d37a4..83162681d72226818bea4ee2d8979657a6c49af8 100644 (file)
@@ -1,14 +1,15 @@
 RM=rm
-EMACS=emacs
+EMACS=../../src/emacs
+
+all: clean $(addsuffix .test,$(wildcard *.*))
 
 clean:
-       -$(RM) *.test
+       -$(RM) -f *.new
 
 # TODO:
 # - mark the places where the indentation is known to be incorrect,
 #   and allow either ignoring those errors or not.
 %.test: %
-       -$(RM) $<.new
        $(EMACS) --batch $< \
            --eval '(indent-region (point-min) (point-max) nil)' \
            --eval '(write-region (point-min) (point-max) "$<.new")'