From 07afda8c2fcb72a4da96c36019544bc5f7da8552 Mon Sep 17 00:00:00 2001 From: tehzz Date: Thu, 29 Dec 2022 22:28:01 -0500 Subject: [PATCH] add distclean make target --- Makefile | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 761eddf..fd5eb6d 100644 --- a/Makefile +++ b/Makefile @@ -263,16 +263,19 @@ LD_SCRIPT = $(TARGET).ld all: $(BUILD_DIR) $(BUILD_DIR)/$(ROM) verify -clean: +distclean: rm -rf asm bin assets $(BUILD_DIR) undefined_syms_auto.txt undefined_funcs_auto.txt +clean: + rm -rf $(BUILD_DIR) + submodules: git submodule update --init --recursive split: rm -rf $(DATA_DIRS) $(ASM_DIRS) && ./tools/n64splat/split.py $(SPLAT_YAML) -setup: clean submodules split +setup: distclean submodules split $(BUILD_DIR): echo $(C_FILES) @@ -315,7 +318,7 @@ $(BUILD_DIR)/$(ROM): $(BUILD_DIR)/$(TARGET).bin verify: $(BUILD_DIR)/$(ROM) md5sum -c checksum.md5 -.PHONY: all clean default split setup +.PHONY: all clean distclean default split setup print-% : ; $(info $* is a $(flavor $*) variable set to [$($*)]) @true