From db272ee2395967494b04540753fb27a9663329c3 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Wed, 13 Nov 2019 22:47:24 +0000 Subject: [PATCH 1/1] test regeneration after a &:-included file (ie a .sd.mk) changes Signed-off-by: Ian Jackson --- example/.gitignore | 3 ++- example/src/Subdir.sd.mk | 2 ++ tests/check | 7 +++++++ 3 files changed, 11 insertions(+), 1 deletion(-) 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. -- 2.30.2