summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorRangi <remy.oukaour+rangi@gmail.com>2018-05-30 14:55:37 -0400
committerRangi <remy.oukaour+rangi@gmail.com>2018-05-30 14:55:37 -0400
commita1550d4c160ffdadd91a3776135aeeeb0fb6a4b6 (patch)
tree321124ae36ab7f42ed1b669df64b5fa2bd617ad5 /Makefile
parentaa11780082158395153c930403a90219383da681 (diff)
'make mostlyclean' preserves graphics; separate frame gfx files
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index f88940a..f6d8f33 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,6 @@
MD5 := md5sum -c
-.PHONY: all compare clean text
+.PHONY: all compare clean mostlyclean text
.SUFFIXES:
.SUFFIXES: .asm .o .gb .png
@@ -44,6 +44,11 @@ clean:
rm -rf $(ROMS) $(OBJS) $(ROMS:.gb=.sym) build/* shim.asm
find . \( -iname '*.1bpp' -o -iname '*.2bpp' -o -iname '*.pic' -o -iname '*.pcm' \) -exec rm {} +
+# Remove files except for graphics.
+mostlyclean:
+ rm -rf $(ROMS) $(OBJS) $(ROMS:.gb=.sym) build/* shim.asm
+ find . \( -iname '*.pcm' \) -exec rm {} +
+
gfx/sgb/sgb_border_alt.2bpp: tools/gfx += --trim-whitespace
gfx/sgb/sgb_border.2bpp: tools/gfx += --trim-whitespace
gfx/title/title.2bpp: tools/gfx += --trim-whitespace