diff --git a/Makefile b/Makefile index f001eb5..368c19b 100644 --- a/Makefile +++ b/Makefile @@ -38,6 +38,7 @@ release: pre-build out/rom.bin out/symbol.txt clean: cleanobj cleanres cleanlst cleandep $(RM) -f out.lst out/cmd_ out/symbol.txt out/rom.nm out/rom.wch out/rom.bin out/rom.s + $(MAKE) -C tests clean-target out/rom.bin: out/rom.out $(OBJCPY) -O binary out/rom.out out/rom.bin @@ -47,7 +48,7 @@ out/rom.s: out/rom.out m68k-elf-objdump -D -S $^ > $@ unit-test: - $(MAKE) -C tests clean-target unit + $(MAKE) -C tests unit .PHONY: unit-test test: diff --git a/tests/Makefile b/tests/Makefile index 0bef8ac..d87896a 100644 --- a/tests/Makefile +++ b/tests/Makefile @@ -227,7 +227,7 @@ CMOCKA_DIR=cmocka UNIT_TESTS_TARGET=$(BIN_DIR)/unit_tests SYSTEM_TESTS_TARGET=$(BIN_DIR)/system_tests -all: clean-target unit system +all: unit system unit: $(UNIT_TESTS_TARGET) $(GDB) ./$(UNIT_TESTS_TARGET)