chiark / gitweb /
example: Introduce a Final.sd.mk and test it
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 28 Dec 2019 22:53:47 +0000 (22:53 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 30 Dec 2019 11:35:15 +0000 (11:35 +0000)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
example/.gitignore
example/Final.sd.mk [new file with mode: 0644]
tests/example/check

index a97b413..2318691 100644 (file)
 /main.mk
 Makefile
 Subdir.mk
+Final.mk
 *.tmp
 
 #----- For our tests -----
 /build
+/for-test-final.sd.mk
 /src/for-test.sd.mk
 /lib/for-test.mk.in
diff --git a/example/Final.sd.mk b/example/Final.sd.mk
new file mode 100644 (file)
index 0000000..314981a
--- /dev/null
@@ -0,0 +1,2 @@
+# This is a hook for subdirmk's test suite.
+&:-include for-test-final.sd.mk
index a051e8e..16cb7a2 100755 (executable)
@@ -13,6 +13,7 @@ mkdir build
 cd build
 >>../src/for-test.sd.mk
 >>../lib/for-test.mk.in
+>>../for-test-final.sd.mk
 .././autogen.sh && ../configure
 make -j4 all check
 
@@ -44,4 +45,10 @@ echo 'for-check-2:' >>../lib/for-test.mk.in
 make -j4 for-check-2
 grep '^for-check-2:' lib/for-test.mk || false
 
+: ----- for-check-3 -----
+reset_times
+echo 'for-check-3:' >>../for-test-final.sd.mk
+make -j4 for-check-3
+grep '^for-check-3:' Final.mk
+
 echo ok.