[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] master 6625890: Add test targets without directory names.
From: |
Phillip Lord |
Subject: |
[Emacs-diffs] master 6625890: Add test targets without directory names. |
Date: |
Fri, 27 Nov 2015 11:57:29 +0000 |
branch: master
commit 6625890e7c2a259407819d6c287c882eabe23ba8
Author: Phillip Lord <address@hidden>
Commit: Phillip Lord <address@hidden>
Add test targets without directory names.
* (test/Makefile.in): Extend test_template to add two targets for each
file.
---
test/Makefile.in | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/test/Makefile.in b/test/Makefile.in
index ee11a0b..545a0e1 100644
--- a/test/Makefile.in
+++ b/test/Makefile.in
@@ -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})))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] master 6625890: Add test targets without directory names.,
Phillip Lord <=