Skip to content

Commit

Permalink
tools/test/Makefile: fix always-on generation of tools/test/gen_test.c
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
rustyrussell committed Aug 21, 2019
1 parent 0fdf229 commit c74c1e5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tools/test/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 > $@
Expand Down

0 comments on commit c74c1e5

Please sign in to comment.