Skip to content

Commit

Permalink
Do not clean test files when running make
Browse files Browse the repository at this point in the history
  • Loading branch information
rhargreaves committed Sep 8, 2024
1 parent 235c656 commit 8a85ea9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion tests/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 8a85ea9

Please sign in to comment.