Currently, targets dependancy list don't include Makefile.in,
this leads to incomplete rebuild after target's compiler/linker
flags was changed.
Use "$(wildcard)" function due to Makefile.in could be absent
in subdirectory.
Signed-off-by: Leonid Lisovskiy <lly.dev(a)gmail.com>
---
test/Test.mak | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/test/Test.mak b/test/Test.mak
index c1b34a7..c9b1f5a 100644
--- a/test/Test.mak
+++ b/test/Test.mak
@@ -116,7 +116,7 @@ compile: $(COMPILE_TARGETS)
G_TARGET_SRCS := $(addsuffix .c,$(G_TARGETS))
U_TARGET_SRCS := $(addsuffix .c,$(U_TARGETS))
-MAKE_SRCS := Makefile $(TESTDIR)Makefile $(TESTDIR)Rules.mak $(TESTDIR)Test.mak
+MAKE_SRCS := $(wildcard Makefile.in) $(TESTDIR)Makefile $(TESTDIR)Rules.mak
$(TESTDIR)Test.mak
$(U_TARGETS): $(U_TARGET_SRCS) $(MAKE_SRCS)
$(showlink)
--
1.8.5.6