[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
style: prefer %D% in Automake files
From: |
Akim Demaille |
Subject: |
style: prefer %D% in Automake files |
Date: |
Sun, 16 Sep 2018 15:33:18 +0200 |
commit 8a266212975e42bf5553bec5882b02dbbbb9eab9
Author: Akim Demaille <address@hidden>
Date: Sun Sep 16 15:29:37 2018 +0200
style: prefer %D% in Automake files
* tests/local.mk: Prefer %D%/ to tests/.
diff --git a/tests/local.mk b/tests/local.mk
index 3c7444aa..c52d1982 100644
--- a/tests/local.mk
+++ b/tests/local.mk
@@ -17,14 +17,14 @@
EXTRA_DIST += $(TESTSUITE_AT) tests/testsuite
-DISTCLEANFILES += tests/atconfig $(check_SCRIPTS)
+DISTCLEANFILES += %D%/atconfig $(check_SCRIPTS)
MAINTAINERCLEANFILES += $(TESTSUITE)
## ------------ ##
## package.m4. ##
## ------------ ##
-$(top_srcdir)/tests/package.m4: $(top_srcdir)/configure
+$(top_srcdir)/%D%/package.m4: $(top_srcdir)/configure
$(AM_V_GEN)rm -f $@ address@hidden
$(AM_V_at){ \
echo '# Signature of the current package.'; \
@@ -40,41 +40,41 @@ $(top_srcdir)/tests/package.m4: $(top_srcdir)/configure
## Generate the test suite. ##
## ------------------------- ##
-TESTSUITE_AT = \
- tests/testsuite.at \
- \
- tests/actions.at \
- tests/c++.at \
- tests/calc.at \
- tests/conflicts.at \
- tests/cxx-type.at \
- tests/existing.at \
- tests/glr-regression.at \
- tests/headers.at \
- tests/input.at \
- tests/java.at \
- tests/javapush.at \
- tests/local.at \
- tests/named-refs.at \
- tests/output.at \
- tests/package.m4 \
- tests/push.at \
- tests/reduce.at \
- tests/regression.at \
- tests/report.at \
- tests/sets.at \
- tests/skeletons.at \
- tests/synclines.at \
- tests/torture.at \
- tests/types.at
-
-TESTSUITE = $(top_srcdir)/tests/testsuite
+TESTSUITE_AT = \
+ %D%/testsuite.at \
+ \
+ %D%/actions.at \
+ %D%/c++.at \
+ %D%/calc.at \
+ %D%/conflicts.at \
+ %D%/cxx-type.at \
+ %D%/existing.at \
+ %D%/glr-regression.at \
+ %D%/headers.at \
+ %D%/input.at \
+ %D%/java.at \
+ %D%/javapush.at \
+ %D%/local.at \
+ %D%/named-refs.at \
+ %D%/output.at \
+ %D%/package.m4 \
+ %D%/push.at \
+ %D%/reduce.at \
+ %D%/regression.at \
+ %D%/report.at \
+ %D%/sets.at \
+ %D%/skeletons.at \
+ %D%/synclines.at \
+ %D%/torture.at \
+ %D%/types.at
+
+TESTSUITE = $(top_srcdir)/%D/testsuite
AUTOTEST = $(AUTOM4TE) --language=autotest
-AUTOTESTFLAGS = -I $(top_srcdir)/tests
+AUTOTESTFLAGS = -I $(top_srcdir)/%D%
$(TESTSUITE): $(TESTSUITE_AT)
$(AM_V_GEN) \
- $(AUTOTEST) $(AUTOTESTFLAGS) $(srcdir)/tests/testsuite.at -o
address@hidden
+ $(AUTOTEST) $(AUTOTESTFLAGS) $(srcdir)/%D/testsuite.at -o
address@hidden
$(AM_V_at)$(PERL) -pi -e 's/address@hidden@/\t/g' address@hidden
$(AM_V_at)mv address@hidden $@
@@ -83,14 +83,14 @@ $(TESTSUITE): $(TESTSUITE_AT)
## Run the test suite. ##
## -------------------- ##
-# Move into tests/ so that testsuite.dir etc. be created there.
-RUN_TESTSUITE = $(TESTSUITE) -C tests $(TESTSUITEFLAGS)
-check_SCRIPTS = $(BISON) tests/atconfig tests/atlocal
+# Move into %D/ so that testsuite.dir etc. be created there.
+RUN_TESTSUITE = $(TESTSUITE) -C %D% $(TESTSUITEFLAGS)
+check_SCRIPTS = $(BISON) %D/atconfig %D/atlocal
RUN_TESTSUITE_deps = all $(TESTSUITE) $(check_SCRIPTS)
clean-local: clean-local-tests
clean-local-tests:
- test ! -f $(TESTSUITE) || $(TESTSUITE) -C tests --clean
+ test ! -f $(TESTSUITE) || $(TESTSUITE) -C %D% --clean
check-local: $(RUN_TESTSUITE_deps)
$(RUN_TESTSUITE)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- style: prefer %D% in Automake files,
Akim Demaille <=