From 769dd106961e7fec7dc481cd4783939806e31376 Mon Sep 17 00:00:00 2001 From: PikalaxALT Date: Sun, 19 Apr 2020 18:26:23 -0400 Subject: [PATCH] Add mostlyclean target; ignore generated gfx --- .gitignore | 5 +++++ Makefile | 7 +++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 78528ae33..b6cffd404 100644 --- a/.gitignore +++ b/.gitignore @@ -16,3 +16,8 @@ cmake-build-debug/ # Tool executables *.exe + +# Generated files +*.4bpp +*.lz +*.gbapal diff --git a/Makefile b/Makefile index 3026cc2dc..57488dfbb 100644 --- a/Makefile +++ b/Makefile @@ -107,16 +107,19 @@ else NODEP := 1 endif -.PHONY: all clean tidy tools $(TOOLDIRS) patch_mwasmarm +.PHONY: all clean mostlyclean tidy tools $(TOOLDIRS) patch_mwasmarm MAKEFLAGS += --no-print-directory all: $(ROM) @$(SHA1SUM) -c $(TARGET).sha1 -clean: tidy +clean: mostlyclean make -C tools/mwasmarm_patcher clean +mostlyclean: tidy + find . \( -iname '*.1bpp' -o -iname '*.4bpp' -o -iname '*.8bpp' -o -iname '*.gbapal' -o -iname '*.lz' \) -exec $(RM) {} + + tidy: $(RM) -r $(BUILD_DIR)