From: Ian Jackson Date: Wed, 13 Nov 2019 22:47:24 +0000 (+0000) Subject: test regeneration after a &:-included file (ie a .sd.mk) changes X-Git-Tag: subdirmk/0.1~34 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ian/git?p=subdirmk.git;a=commitdiff_plain;h=db272ee2395967494b04540753fb27a9663329c3;hp=18e2f3b180aea315623ffac3a10e76110e10d697 test regeneration after a &:-included file (ie a .sd.mk) changes Signed-off-by: Ian Jackson --- diff --git a/example/.gitignore b/example/.gitignore index 4c8a2a9..07064fc 100644 --- a/example/.gitignore +++ b/example/.gitignore @@ -24,5 +24,6 @@ Makefile Subdir.mk *.tmp -#----- For our out-of-tree build test ----- +#----- For our tests ----- /build +/src/for-test.sd.mk diff --git a/example/src/Subdir.sd.mk b/example/src/Subdir.sd.mk index 69ac190..402116e 100644 --- a/example/src/Subdir.sd.mk +++ b/example/src/Subdir.sd.mk @@ -10,3 +10,5 @@ &toy: $(&OBJECTS) $(&LIBS) $(LINK) $^ + +&:-include src/for-test.sd.mk diff --git a/tests/check b/tests/check index afae155..7465c2c 100755 --- a/tests/check +++ b/tests/check @@ -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.