summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRangi <remy.oukaour+rangi42@gmail.com>2020-08-11 14:14:35 -0400
committerRangi <remy.oukaour+rangi42@gmail.com>2020-08-11 14:14:35 -0400
commit6ae9d02813416d0d23717fbda31cd7ccf03532d0 (patch)
treeb96b6d7c19d82b10f39a80baef77a8b325edf135
parent2b003eca72bea42bfaabf8f849ea9711ddc4b350 (diff)
'make clean' reuses 'make tidy' commands
-rw-r--r--Makefile4
1 files changed, 1 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 7853c5b4..198de6cc 100644
--- a/Makefile
+++ b/Makefile
@@ -59,10 +59,8 @@ silver: pokesilver.gbc
gold_debug: pokegold_debug.gbc
silver_debug: pokesilver_debug.gbc
-clean:
- rm -f $(roms) $(pokegold_obj) $(pokesilver_obj) $(pokegold_debug_obj) $(pokesilver_debug_obj) $(roms:.gbc=.map) $(roms:.gbc=.sym) rgbdscheck.o
+clean: tidy
find gfx \( -name "*.[12]bpp" -o -name "*.lz" -o -name "*.gbcpal" -o -name "*.dimensions" -o -name "*.sgb.tilemap" \) -delete
- $(MAKE) clean -C tools/
tidy:
rm -f $(roms) $(pokegold_obj) $(pokesilver_obj) $(pokegold_debug_obj) $(pokesilver_debug_obj) $(roms:.gbc=.map) $(roms:.gbc=.sym) rgbdscheck.o