mirror of
https://github.com/pret/pokered.git
synced 2024-10-22 22:55:31 +00:00
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.
This commit is contained in:
parent
9ab6327361
commit
dbef0efa6c
1 changed files with 2 additions and 1 deletions
3
Makefile
3
Makefile
|
@ -32,7 +32,7 @@ compare:
|
||||||
|
|
||||||
# Clear the default suffixes.
|
# Clear the default suffixes.
|
||||||
.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.
|
# Secondary expansion is required for dependency variables in object rules.
|
||||||
.SECONDEXPANSION:
|
.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.
|
# 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 $@
|
%.2bpp: %.png ; $(eval 2bppq += $<) @rm -f $@
|
||||||
%.1bpp: %.png ; $(eval 1bppq += $<) @rm -f $@
|
%.1bpp: %.png ; $(eval 1bppq += $<) @rm -f $@
|
||||||
%.pic: %.2bpp ; $(eval picq += $<) @rm -f $@
|
%.pic: %.2bpp ; $(eval picq += $<) @rm -f $@
|
||||||
|
|
Loading…
Reference in a new issue