From 8bc4f0137aeeca15ba24545b601565842f70f399 Mon Sep 17 00:00:00 2001 From: Christian Decker Date: Mon, 17 Jan 2022 17:52:45 +0100 Subject: [PATCH] make: Add a hook for us to depend on generated files for tests We are about to generate the python grpc bindings, but only when we have Rust enabled. --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 6f541df02..67b6fd3d8 100644 --- a/Makefile +++ b/Makefile @@ -227,6 +227,7 @@ WIRE_GEN_DEPS := $(WIRE_GEN) $(wildcard tools/gen/*_template) # These are filled by individual Makefiles ALL_PROGRAMS := ALL_TEST_PROGRAMS := +ALL_TEST_GEN := ALL_FUZZ_TARGETS := ALL_C_SOURCES := ALL_C_HEADERS := header_versions_gen.h version_gen.h @@ -424,7 +425,7 @@ else endif endif -pytest: $(ALL_PROGRAMS) $(DEFAULT_TARGETS) $(ALL_TEST_PROGRAMS) +pytest: $(ALL_PROGRAMS) $(DEFAULT_TARGETS) $(ALL_TEST_PROGRAMS) $(ALL_TEST_GEN) ifeq ($(PYTEST),) @echo "py.test is required to run the integration tests, please install using 'pip3 install -r requirements.txt', and rerun 'configure'." exit 1