OSDN Git Service

Add dependency tracking for tests/Makefile.
authorKeith Marshall <keithmarshall@users.sourceforge.net>
Fri, 14 Oct 2016 14:46:46 +0000 (15:46 +0100)
committerKeith Marshall <keithmarshall@users.sourceforge.net>
Fri, 14 Oct 2016 14:46:46 +0000 (15:46 +0100)
mingwrt/ChangeLog
mingwrt/tests/Makefile.in

index 06e200f..9bea175 100644 (file)
@@ -1,5 +1,13 @@
 2016-10-14  Keith Marshall  <keithmarshall@users.sourceforge.net>
 
+       Add dependency tracking for tests/Makefile.
+
+       * tests/Makefile.in (top_builddir): Define it.
+       (Makefile): Add automatic rebuild rule, tracking both srcdir and
+       top_builddir prerequisite changes.
+
+2016-10-14  Keith Marshall  <keithmarshall@users.sourceforge.net>
+
        Correct a minor typographic error.
 
        * tests/atlocal.in (autoconf_input): Replace invalid AC_SUBST tag...
index cbbd237..19ca799 100644 (file)
@@ -29,6 +29,7 @@
 
 srcdir = @srcdir@
 top_srcdir = @top_srcdir@
+top_builddir = @top_builddir@
 
 # The default rule is "check"; it is a synonym for the "check-recursive"
 # request, from the parent directory's make process, which initiates the
@@ -43,6 +44,11 @@ check-local: testsuite
 check-install: testsuite.install
 check-pretest: testsuite.pretest headers.at.pretest
 
+vpath Makefile.in ${srcdir}
+vpath config.status ${top_builddir}
+Makefile: %: %.in config.status
+       cd ${top_builddir}; ./config.status $(notdir ${CURDIR})/$@
+
 LN_S = @LN_S@
 
 # Favour any copy of the testsuite which already exists in the build