chiark / gitweb /
test regeneration after a &:-included file (ie a .sd.mk) changes
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 13 Nov 2019 22:47:24 +0000 (22:47 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 13 Nov 2019 22:57:07 +0000 (22:57 +0000)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
example/.gitignore
example/src/Subdir.sd.mk
tests/check

index 4c8a2a9..07064fc 100644 (file)
@@ -24,5 +24,6 @@ Makefile
 Subdir.mk
 *.tmp
 
-#----- For our out-of-tree build test -----
+#----- For our tests -----
 /build
+/src/for-test.sd.mk
index 69ac190..402116e 100644 (file)
@@ -10,3 +10,5 @@
 
 &toy: $(&OBJECTS) $(&LIBS)
        $(LINK) $^
+
+&:-include src/for-test.sd.mk
index afae155..7465c2c 100755 (executable)
@@ -11,5 +11,12 @@ make -j4 all check
 git clean -xdff
 mkdir build
 cd build
+>>../src/for-test.sd.mk
 .././autogen.sh && ../configure
 make -j4 all check
+
+echo '# for-check 1' >>../src/for-test.sd.mk
+make -j4
+grep '^# for-check 1' src/Subdir.mk || false
+
+echo ok.