summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorPikalaxALT <PikalaxALT@gmail.com>2020-04-19 18:26:23 -0400
committerPikalaxALT <PikalaxALT@gmail.com>2020-04-19 18:26:23 -0400
commit769dd106961e7fec7dc481cd4783939806e31376 (patch)
tree8053df67316700cef938cfe4e82e95d3b0563c48 /Makefile
parent84053dd3ef9f6d0b720abdbaa7d7b72d73403b01 (diff)
Add mostlyclean target; ignore generated gfx
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 3026cc2d..57488dfb 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)