]> git.eshelyaron.com Git - emacs.git/commitdiff
Add test targets without directory names.
authorPhillip Lord <phillip.lord@russet.org.uk>
Fri, 27 Nov 2015 11:56:18 +0000 (11:56 +0000)
committerPhillip Lord <phillip.lord@russet.org.uk>
Fri, 27 Nov 2015 11:56:18 +0000 (11:56 +0000)
 * (test/Makefile.in): Extend test_template to add two targets for each
   file.

test/Makefile.in

index ee11a0b7a30e4549aa83fda35e7dc8548794cec5..545a0e110fb9a28846762ca0b7bf23ccd287e387 100644 (file)
@@ -112,10 +112,14 @@ TESTS = $(subst ${srcdir}/,,$(LOGFILES:.log=))
 .PHONY: ${TESTS}
 
 ## The short aliases that always re-run the tests, with no logging.
+## Define an alias both with and without the directory name for ease
+## of use.
 define test_template
 $(1):
        @test ! -f ${srcdir}/$(1).log || mv ${srcdir}/$(1).log ${srcdir}/$(1).log~
        @${MAKE} ${srcdir}/$(1).log WRITE_LOG=
+
+$(notdir $(1)): $(1)
 endef
 
 $(foreach test,${TESTS},$(eval $(call test_template,${test})))