summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rwxr-xr-xMakefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 267808f..43d9a51 100755
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
-.PHONY: all compare clean
+.PHONY: all compare clean tidy
.SUFFIXES:
.SUFFIXES: .asm .o .gbc .png
@@ -38,8 +38,10 @@ compare: $(ROMS) baserom.gbc
cmp $^
# Remove files generated by the build process.
-clean:
+tidy:
rm -f $(ROMS) $(OBJS) $(ROMS:.gbc=.sym)
+
+clean: tidy
find . \( -iname '*.1bpp' -o -iname '*.2bpp' -o -iname '*.pcm' \) -exec rm {} +
%.2bpp: %.png