From de57ca3eac6a045956e0699625c8d9d2dfe1daad Mon Sep 17 00:00:00 2001 From: Klement Sekera Date: Thu, 12 Mar 2020 12:30:21 +0100 Subject: tests: avoid unnecessary rebuilds Improve dependency tracking on vapi_test directory so that vapi_c_test rebuild doesn't force vapi_cpp_test rebuild and vice versa. Type: improvement Signed-off-by: Klement Sekera Change-Id: I00094c6374981333858ddbe6ae934cfda3b33a36 --- test/ext/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test') diff --git a/test/ext/Makefile b/test/ext/Makefile index c89764ecb0b..d7acb7bc2b2 100644 --- a/test/ext/Makefile +++ b/test/ext/Makefile @@ -27,7 +27,7 @@ $(VAPI_BINDIR)/fake.api.vapi.h: fake.api.json $(WS_ROOT)/src/vpp-api/vapi/vapi_c $(VAPI_BINDIR)/fake.api.vapi.hpp: fake.api.json $(WS_ROOT)/src/vpp-api/vapi/vapi_cpp_gen.py | $(VAPI_BINDIR) $(WS_ROOT)/src/vpp-api/vapi/vapi_cpp_gen.py --prefix $(VAPI_BINDIR) $< -$(VAPI_CBIN): $(VAPI_BINDIR) $(CSRC) $(VAPI_BINDIR)/fake.api.vapi.h +$(VAPI_CBIN): $(CSRC) $(VAPI_BINDIR)/fake.api.vapi.h | $(VAPI_BINDIR) $(CC) -o $@ $(CFLAGS) $(CSRC) $(VAPI_LIBS) $(VAPI_CBIN).d: $(CSRC) $(VAPI_BINDIR)/fake.api.vapi.h @@ -39,7 +39,7 @@ VAPI_CPPBIN= else CPPSRC = $(TEST_EXT_DIR)/vapi_cpp_test.cpp -$(VAPI_CPPBIN): $(VAPI_BINDIR) $(CPPSRC) $(VAPI_BINDIR)/fake.api.vapi.hpp +$(VAPI_CPPBIN): $(CPPSRC) $(VAPI_BINDIR)/fake.api.vapi.hpp | $(VAPI_BINDIR) $(CXX) -o $@ $(CPPFLAGS) $(CPPSRC) $(VAPI_LIBS) $(VAPI_CPPBIN).d: $(CPPSRC) $(VAPI_BINDIR)/fake.api.vapi.hpp -- cgit 1.2.3-korg