tools/test/Makefile: we depend on tools/test/gen_test.h

This is because update-mocks actually tries to build it to get link
errors.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell 2019-08-19 11:42:57 +09:30
parent de361456d5
commit 303c221641

View File

@ -30,7 +30,7 @@ tools/test/gen_test.h: $(TOOLS_WIRE_DEPS)
tools/test/gen_test.c.tmp.c: $(TOOLS_WIRE_DEPS) 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 > $@ $(BOLT_GEN) --page impl tools/test/gen_test.h test_type < tools/test/test_cases > $@
tools/test/gen_test.c: tools/test/gen_test.c.tmp.c $(EXTERNAL_HEADERS) tools/test/gen_test.c: tools/test/gen_test.c.tmp.c $(EXTERNAL_HEADERS) tools/test/gen_test.h
@MAKE=$(MAKE) tools/update-mocks.sh "$<" && mv "$<" "$@" @MAKE=$(MAKE) tools/update-mocks.sh "$<" && mv "$<" "$@"
tools/test/gen_print.h: wire/gen_onion_wire.h $(TOOLS_WIRE_DEPS) tools/test/gen_print.h: wire/gen_onion_wire.h $(TOOLS_WIRE_DEPS)