From 45f0e98d6a7b18de0543add42a7a00aa85cf13b2 Mon Sep 17 00:00:00 2001 From: CrepeGoat Date: Wed, 20 Sep 2023 23:55:30 -0600 Subject: [PATCH] change `make clean` to clean tools & `make distclean` to distclean tools/ido-static-recomp --- Makefile | 5 +++-- tools/Makefile | 3 +++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index b267233e4d..1372acf1d3 100644 --- a/Makefile +++ b/Makefile @@ -480,11 +480,12 @@ endif clean: $(RM) -r $(BUILD_DIR_BASE) + $(MAKE) -C $(TOOLS_DIR) clean + $(MAKE) -C $(TOOLS_DIR)/sm64tools clean distclean: clean $(PYTHON) extract_assets.py --clean - $(MAKE) -C $(TOOLS_DIR) clean - $(MAKE) -C $(TOOLS_DIR)/sm64tools clean + $(MAKE) -C $(TOOLS_DIR) distclean test: $(ROM) $(EMULATOR) $(EMU_FLAGS) $< diff --git a/tools/Makefile b/tools/Makefile index f3f9496fe9..b81166b066 100644 --- a/tools/Makefile +++ b/tools/Makefile @@ -56,6 +56,9 @@ clean: $(MAKE) -C audiofile clean $(MAKE) -C ido-static-recomp clean +distclean: clean + $(MAKE) -C ido-static-recomp distclean + define COMPILE $(1): $($1_SOURCES) $$(CC) $(CFLAGS) $($1_CFLAGS) $$^ -o $$@ $($1_LDFLAGS) $(LDFLAGS)