shithub: pokecrystal

Download patch

ref: c195276073a9ae9b8ed5acc4de54600820992593
parent: 6a21963799575fa8a88ed55cde5408ef67c92d63
author: yenatch <[email protected]>
date: Tue Sep 10 21:24:20 EDT 2013

rename make variables for graphics files

--- a/Makefile
+++ b/Makefile
@@ -7,9 +7,10 @@
 
 OBJS := pokecrystal.o
 
-PNG_GFX    := $(shell find gfx/ -type f -name '*.png')
-LZ_GFX     := $(shell find gfx/ -type f -name '*.lz')
-TWOBPP_GFX := $(shell find gfx/ -type f -name '*.2bpp')
+PNGS   := $(shell find gfx/ -type f -name '*.png')
+LZS    := $(shell find gfx/ -type f -name '*.lz')
+_2BPPS := $(shell find gfx/ -type f -name '*.2bpp')
+_1BPPS := $(shell find gfx/ -type f -name '*.1bpp')
 
 $(shell $(foreach obj, $(OBJS), $(eval OBJ_$(obj:.o=) := $(shell $(PYTHON) scan_includes.py $(obj:.o=.asm)))))
 
@@ -41,7 +42,7 @@
 	$(PYTHON) extras/pokemontools/gfx.py mass-decompress
 	$(PYTHON) extras/pokemontools/gfx.py dump-pngs
 
-lzs: $(LZ_GFX) $(TWOBPP_GFX)
+lzs: $(LZS) $(_2BPPS) $(_1BPPS)
 	@:
 
 gfx/pics/%/front.lz: gfx/pics/%/tiles.2bpp gfx/pics/%/front.png
@@ -55,6 +56,8 @@
 .png.lz:
 	$(PYTHON) extras/pokemontools/gfx.py png-to-lz $<
 .png.2bpp:
+	$(PYTHON) extras/pokemontools/gfx.py png-to-lz $<
+.png.1bpp:
 	$(PYTHON) extras/pokemontools/gfx.py png-to-lz $<
 %.2bpp:
 	@: