ref: 9c4fb6a6a4b0d63c5c165aefb95cbe5c0d9fdace
parent: e2c2e20f93f43848542362a5deee677e88f9507d
author: yenatch <yenatch@gmail.com>
date: Sun Jun 28 19:50:50 EDT 2015
Add a script to convert project-specific graphics. This is an alternative to terrible hacks like filename metadata, and might combat submodule bloat.
--- a/Makefile
+++ b/Makefile
@@ -7,7 +7,7 @@
.SECONDEXPANSION:
poketools := extras/pokemontools
-gfx := $(PYTHON) $(poketools)/gfx.py
+gfx := $(PYTHON) gfx.py
includes := $(PYTHON) $(poketools)/scan_includes.py
@@ -79,12 +79,13 @@
find . -iname "*.[12]bpp" -exec touch {} +
find . -iname "*.lz" -exec touch {} +
-%.2bpp: %.png ; @$(gfx) 2bpp $<
-%.1bpp: %.png ; @$(gfx) 1bpp $<
-%.lz: % ; @$(gfx) lz $<
+%.2bpp: %.png ; $(gfx) 2bpp $<
+%.1bpp: %.png ; $(gfx) 1bpp $<
+%.lz: % ; $(gfx) lz $<
-%.pal: ;
+%.pal: %.2bpp ;
+gfx/pics/%/normal.pal gfx/pics/%/bitmask.asm gfx/pics/%/frames.asm: gfx/pics/%/front.2bpp ;
%.bin: ;
%.blk: ;
%.tilemap: ;