build: don't rely on $< in non-pattern rules.

* doc/local.mk, tests/local.mk: here.
Reported by Stefano Lattarini.
This commit is contained in:
Akim Demaille
2012-04-01 14:27:23 +02:00
parent d243e0241f
commit da83f83821
2 changed files with 5 additions and 5 deletions

View File

@@ -40,7 +40,6 @@ $(top_srcdir)/tests/package.m4: $(top_srcdir)/configure
## Generate the test suite. ##
## ------------------------- ##
## Leave testsuite.at first for the "testsuite" rule's $<.
TESTSUITE_AT = \
tests/testsuite.at \
\
@@ -71,7 +70,8 @@ TESTSUITE = $(top_srcdir)/tests/testsuite
AUTOTEST = $(AUTOM4TE) --language=autotest
AUTOTESTFLAGS = -I $(top_srcdir)/tests
$(TESTSUITE): $(TESTSUITE_AT)
$(AM_V_GEN)$(AUTOTEST) $(AUTOTESTFLAGS) $< -o $@.tmp
$(AM_V_GEN) \
$(AUTOTEST) $(AUTOTESTFLAGS) $(srcdir)/tests/testsuite.at -o $@.tmp
$(AM_V_at)mv $@.tmp $@