summaryrefslogtreecommitdiffstats
path: root/test/ext/Makefile
diff options
context:
space:
mode:
authorKlement Sekera <ksekera@cisco.com>2020-03-12 12:30:21 +0100
committerPaul Vinciguerra <pvinci@vinciconsulting.com>2020-03-13 02:03:44 +0000
commitde57ca3eac6a045956e0699625c8d9d2dfe1daad (patch)
tree1c960c94ba5d0291d6be3eae8037d59c6a93f783 /test/ext/Makefile
parente7e1b32520212de99408d0cf1472d23cc62d21a9 (diff)
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 <ksekera@cisco.com> Change-Id: I00094c6374981333858ddbe6ae934cfda3b33a36
Diffstat (limited to 'test/ext/Makefile')
-rw-r--r--test/ext/Makefile4
1 files changed, 2 insertions, 2 deletions
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