summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorluckytyphlosion <10688458+luckytyphlosion@users.noreply.github.com>2018-09-23 13:44:23 -0400
committerluckytyphlosion <10688458+luckytyphlosion@users.noreply.github.com>2018-09-23 13:44:23 -0400
commit4ab1ee8920c07116bddba1a7eb0f46924198b1b4 (patch)
treeb8b9d68c11b07697aed66d1fb6d531a5761e0ba7
parent850ef245f38b7ac587d5cf62acdc380774bb2716 (diff)
Add make tidy and remove bitmask.asm and frames.asm in make clean
-rw-r--r--Makefile10
1 files changed, 7 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index f92cdda04..c78a996ce 100644
--- a/Makefile
+++ b/Makefile
@@ -33,7 +33,7 @@ crystal11_obj := $(crystal_obj:.o=11.o)
### Build targets
.SUFFIXES:
-.PHONY: all crystal crystal11 clean compare tools
+.PHONY: all crystal crystal11 clean compare tools tidy
.SECONDEXPANSION:
.PRECIOUS:
.SECONDARY:
@@ -42,10 +42,14 @@ all: crystal
crystal: pokecrystal.gbc
crystal11: pokecrystal11.gbc
-# TODO: clean bitmask.asm and frames.asm for all mons except unown
clean:
rm -f $(roms) $(crystal_obj) $(crystal11_obj) $(roms:.gbc=.map) $(roms:.gbc=.sym)
- find . \( -iname '*.1bpp' -o -iname '*.2bpp' -o -iname '*.lz' -o -iname '*.gbcpal' -o -iname '*.dimensions' -o -iname '*.animated.tilemap' \) -exec rm {} +
+ find gfx \( -name "*.[12]bpp" -o -name "*.lz" -o -name "*.gbcpal" \) -delete
+ find gfx/pokemon -mindepth 1 ! -path "gfx/pokemon/unown/*" \( -name "bitmask.asm" -o -name "frames.asm" -o -name "front.animated.tilemap" -o -name "front.dimensions" \) -delete
+ $(MAKE) clean -C tools/
+
+tidy:
+ rm -f $(roms) $(crystal_obj) $(crystal11_obj) $(roms:.gbc=.map) $(roms:.gbc=.sym)
$(MAKE) clean -C tools/
compare: $(roms)