chiark / gitweb /
test regeneration after a -included .in file changes
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 13 Nov 2019 22:56:45 +0000 (22:56 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 13 Nov 2019 22:57:11 +0000 (22:57 +0000)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
example/.gitignore
example/configure.ac
example/lib/Subdir.sd.mk
tests/check

index 07064fc..a97b413 100644 (file)
@@ -27,3 +27,4 @@ Subdir.mk
 #----- For our tests -----
 /build
 /src/for-test.sd.mk
+/lib/for-test.mk.in
index 88516fb..8d3496b 100644 (file)
@@ -19,6 +19,10 @@ m4_include([subdirmk/subdirmk.ac])
 SUBDIRMK_SUBDIRS([lib])
 SUBDIRMK_SUBDIRS([lib/t src])
 
+if test -f $srcdir/lib/for-test.mk.in; then
+   SUBDIRMK_MAKEFILES([lib/for-test.mk])
+fi
+
 AC_OUTPUT
 
 dnl----- That's all, folks --------------------------------------------------
index fa40cfd..c2939c5 100644 (file)
@@ -9,3 +9,5 @@
 
 &libtoy.a:     $(&OBJECTS)
        $(AR) rc $@ $^
+
+-include &^/lib/for-test.mk
index 7465c2c..f0914dd 100755 (executable)
@@ -12,6 +12,7 @@ git clean -xdff
 mkdir build
 cd build
 >>../src/for-test.sd.mk
+>>../lib/for-test.mk.in
 .././autogen.sh && ../configure
 make -j4 all check
 
@@ -19,4 +20,8 @@ echo '# for-check 1' >>../src/for-test.sd.mk
 make -j4
 grep '^# for-check 1' src/Subdir.mk || false
 
+echo '# for-check 2' >>../lib/for-test.mk.in
+make -j4
+grep '^# for-check 2' lib/for-test.mk || false
+
 echo ok.