aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhillip Lord2015-11-27 11:56:18 +0000
committerPhillip Lord2015-11-27 11:56:18 +0000
commit6625890e7c2a259407819d6c287c882eabe23ba8 (patch)
tree43da45d3061709d7b6cb808b037ec90d0321b3b9
parent8eaba112c952eecd5b7f17af40c29584a7172f59 (diff)
downloademacs-6625890e7c2a259407819d6c287c882eabe23ba8.tar.gz
emacs-6625890e7c2a259407819d6c287c882eabe23ba8.zip
Add test targets without directory names.
* (test/Makefile.in): Extend test_template to add two targets for each file.
-rw-r--r--test/Makefile.in4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/Makefile.in b/test/Makefile.in
index ee11a0b7a30..545a0e110fb 100644
--- a/test/Makefile.in
+++ b/test/Makefile.in
@@ -112,10 +112,14 @@ TESTS = $(subst ${srcdir}/,,$(LOGFILES:.log=))
112.PHONY: ${TESTS} 112.PHONY: ${TESTS}
113 113
114## The short aliases that always re-run the tests, with no logging. 114## The short aliases that always re-run the tests, with no logging.
115## Define an alias both with and without the directory name for ease
116## of use.
115define test_template 117define test_template
116$(1): 118$(1):
117 @test ! -f ${srcdir}/$(1).log || mv ${srcdir}/$(1).log ${srcdir}/$(1).log~ 119 @test ! -f ${srcdir}/$(1).log || mv ${srcdir}/$(1).log ${srcdir}/$(1).log~
118 @${MAKE} ${srcdir}/$(1).log WRITE_LOG= 120 @${MAKE} ${srcdir}/$(1).log WRITE_LOG=
121
122$(notdir $(1)): $(1)
119endef 123endef
120 124
121$(foreach test,${TESTS},$(eval $(call test_template,${test}))) 125$(foreach test,${TESTS},$(eval $(call test_template,${test})))