From: Ian Jackson Date: Sat, 28 Dec 2019 22:53:47 +0000 (+0000) Subject: example: Introduce a Final.sd.mk and test it X-Git-Tag: subdirmk/0.3~68 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ian/git?p=subdirmk.git;a=commitdiff_plain;h=05f337b62aaf5a0786ab3db09d0dacc141a881c4;hp=d2e74ff2c6f62843eddeb259979953546c556cc7 example: Introduce a Final.sd.mk and test it Signed-off-by: Ian Jackson --- diff --git a/example/.gitignore b/example/.gitignore index a97b413..2318691 100644 --- a/example/.gitignore +++ b/example/.gitignore @@ -22,9 +22,11 @@ /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 index 0000000..314981a --- /dev/null +++ b/example/Final.sd.mk @@ -0,0 +1,2 @@ +# This is a hook for subdirmk's test suite. +&:-include for-test-final.sd.mk diff --git a/tests/example/check b/tests/example/check index a051e8e..16cb7a2 100755 --- a/tests/example/check +++ b/tests/example/check @@ -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.