summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoryenatch <yenatch@gmail.com>2014-07-11 12:14:39 -0700
committeryenatch <yenatch@gmail.com>2014-07-11 12:14:39 -0700
commitdbef0efa6c44245907bea443fdee58c937ee54c7 (patch)
treeab7eaac3c77cfe6bed0499053deb1b4be132f3ca
parent9ab6327361190b04b27a2ada2a83210e1cb963b5 (diff)
Add image suffixes to the makefile.
Explicitly define png dependencies (none). This keeps make from looking for nonexistent dependencies with extensions like ".png.o". This doesn't make it go any faster, but it at least makes debug easier.
-rw-r--r--Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 0d8db6bd..b61c0502 100644
--- a/Makefile
+++ b/Makefile
@@ -32,7 +32,7 @@ compare:
# Clear the default suffixes.
.SUFFIXES:
-.SUFFIXES: .asm .tx .o .gbc
+.SUFFIXES: .asm .tx .o .gbc .png .2bpp .1bpp .pic
# Secondary expansion is required for dependency variables in object rules.
.SECONDEXPANSION:
@@ -62,6 +62,7 @@ $(foreach obj, $(all_obj), \
# Image files are added to a queue to reduce build time. They're converted when building parent objects.
+%.png: ;
%.2bpp: %.png ; $(eval 2bppq += $<) @rm -f $@
%.1bpp: %.png ; $(eval 1bppq += $<) @rm -f $@
%.pic: %.2bpp ; $(eval picq += $<) @rm -f $@