From c74c1e56ccb9bb02a87aa1dfee5bc4afaaca1465 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Wed, 21 Aug 2019 10:23:36 +0930 Subject: [PATCH] tools/test/Makefile: fix always-on generation of tools/test/gen_test.c We need to tell it that the tmp file is an intermediate, so doesn't need remaking if it doesn't exist. Signed-off-by: Rusty Russell --- tools/test/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/test/Makefile b/tools/test/Makefile index 04b4d7f0f..83ead75b4 100644 --- a/tools/test/Makefile +++ b/tools/test/Makefile @@ -26,6 +26,7 @@ $(TOOL_TEST_PROGRAMS): $(TOOL_TEST_COMMON_OBJS) $(TOOL_GEN_SRC:.c=.o) tools/test tools/test/gen_test.h: $(TOOLS_WIRE_DEPS) $(BOLT_GEN) --page header $@ test_type < tools/test/test_cases > $@ +.INTERMEDIATE: tools/test/gen_test.c.tmp.c # Parallel make sometimes tries to use file before update-mocks, so split. tools/test/gen_test.c.tmp.c: $(TOOLS_WIRE_DEPS) $(BOLT_GEN) --page impl tools/test/gen_test.h test_type < tools/test/test_cases > $@