Add a dependency to build the test helpers as part of the normal
compile; otherwise they won't be built until the 'make test' target is
run.
Signed-off-by: Toke Høiland-Jørgensen <toke@redhat.com>
CHECK_RULES := check_abi
endif
-all: $(STATIC_LIBS) $(SHARED_LIBS) $(XDP_OBJS) $(PC_FILE) check man
+all: $(STATIC_LIBS) $(SHARED_LIBS) $(XDP_OBJS) $(PC_FILE) check man build_tests
clean:
$(Q)rm -f $(STATIC_LIBS) $(STATIC_OBJS) $(SHARED_LIBS) $(SHARED_OBJS) $(XDP_OBJS) $(PC_FILE) $(MAN_OBJ) $(TEMPLATED_SOURCES) *.ll
endif
+.PHONY: build_tests
+build_tests: $(SHARED_LIBS) $(STATIC_LIBS)
+ $(Q)$(MAKE) -C $(TEST_DIR)
+
.PHONY: test
test: all
$(Q)$(MAKE) -C $(TEST_DIR) run