From aad5da27e720b325183189c8a52d901f34cd97b6 Mon Sep 17 00:00:00 2001 From: Wojciech Kosior Date: Mon, 21 Sep 2020 18:15:19 +0200 Subject: make running tests through Makefile more comfortable --- Makefile.test | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'Makefile.test') diff --git a/Makefile.test b/Makefile.test index 46af49a..787489c 100644 --- a/Makefile.test +++ b/Makefile.test @@ -11,6 +11,7 @@ MACROASM_FLAGS += -I$(PROJ_DIR)/include/ -E include $(PROJ_DIR)/Makefile.config include $(PROJ_DIR)/Makefile.util +include $(PROJ_DIR)/tools/Makefile.tools ifdef DEBUG IVFLAGS += -DDEBUG @@ -42,7 +43,9 @@ ifdef VGA_TEST endif endif -$(PROJ_DIR)/% : +TOOLS_TARGETS = $(addprefix $(PROJ_DIR)/tools/,$(TOOLS)) + +$(TOOLS_TARGETS) : $(PROJ_DIR)/% : $(MAKE) -C $(PROJ_DIR) $* %.mem : %.memv @@ -70,4 +73,6 @@ clean : rm $(GENERATED_MEM_FILES) *.vvp *.wasm report.log VGAdump.mem \ VGAdump.ppm 2>/dev/null || true -.PHONY : test clean +.PHONY : test clean $(TOOLS_TARGETS) + +.SECONDARY : $(TOOLS_TARGETS) -- cgit v1.2.3