ref: 7ba068d45b6e1744402ab910f2ded4e9e32429c6
parent: 3064e84c5f6e2cc4b812713f89725124ebc757a9
author: yenatch <yenatch@gmail.com>
date: Sun Aug 20 08:38:32 EDT 2017
Makefile formatting
--- a/Makefile
+++ b/Makefile
@@ -75,10 +75,13 @@
%.lz: hash = $(shell tools/md5 $(*D)/$(*F) | sed "s/\(.\{8\}\).*/\1/")
%.lz: %
$(eval filename := $@.$(hash))
- $(if $(wildcard $(filename)),cp $(filename) $@,tools/lzcomp $< $@)
+ $(if $(wildcard $(filename)),\
+ cp $(filename) $@,\
+ tools/lzcomp $< $@)
-# Terrible hacks to match animations. Delete these rules if you don't care about matching.
+### Terrible hacks to match animations. Delete these rules if you don't care about matching.
+
# Dewgong has an unused tile id in its last frame. The tile itself is missing.
gfx/pics/dewgong/frames.asm: gfx/pics/dewgong/front.animated.tilemap gfx/pics/dewgong/front.dimensions
tools/pokemon_animation -f $^ > $@
@@ -97,7 +100,7 @@
tools/pokemon_animation_graphics --girafarig -t $@ $^
-# Pokemon pic graphics rules
+### Pokemon pic graphics rules
gfx/pics/%/normal.gbcpal: gfx/pics/%/front.png
rgbgfx -p $@ $<
@@ -118,7 +121,7 @@
# rgbgfx -o $@ $<
-# Misc file-specific graphics rules
+### Misc file-specific graphics rules
gfx/shrink1.2bpp: rgbgfx += -h
gfx/shrink2.2bpp: rgbgfx += -h
@@ -190,11 +193,13 @@
%.2bpp: %.png
rgbgfx $(rgbgfx) -o $@ $<
- $(if $(tools/gfx),tools/gfx $(tools/gfx) -o $@ $@)
+ $(if $(tools/gfx),\
+ tools/gfx $(tools/gfx) -o $@ $@)
%.1bpp: %.png
rgbgfx $(rgbgfx) -d1 -o $@ $<
- $(if $(tools/gfx),tools/gfx $(tools/gfx) -d1 -o $@ $@)
+ $(if $(tools/gfx),\
+ tools/gfx $(tools/gfx) -d1 -o $@ $@)
%.tilemap: %.png
rgbgfx -t $@ $<