mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2024-09-09 09:51:34 -07:00
Makefile formatting
This commit is contained in:
parent
3064e84c5f
commit
7ba068d45b
17
Makefile
17
Makefile
@ -75,9 +75,12 @@ pokecrystal.gbc: $(crystal_obj)
|
|||||||
%.lz: hash = $(shell tools/md5 $(*D)/$(*F) | sed "s/\(.\{8\}\).*/\1/")
|
%.lz: hash = $(shell tools/md5 $(*D)/$(*F) | sed "s/\(.\{8\}\).*/\1/")
|
||||||
%.lz: %
|
%.lz: %
|
||||||
$(eval filename := $@.$(hash))
|
$(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.
|
# 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
|
gfx/pics/dewgong/frames.asm: gfx/pics/dewgong/front.animated.tilemap gfx/pics/dewgong/front.dimensions
|
||||||
@ -97,7 +100,7 @@ gfx/pics/girafarig/front.animated.tilemap: gfx/pics/girafarig/front.2bpp gfx/pic
|
|||||||
tools/pokemon_animation_graphics --girafarig -t $@ $^
|
tools/pokemon_animation_graphics --girafarig -t $@ $^
|
||||||
|
|
||||||
|
|
||||||
# Pokemon pic graphics rules
|
### Pokemon pic graphics rules
|
||||||
|
|
||||||
gfx/pics/%/normal.gbcpal: gfx/pics/%/front.png
|
gfx/pics/%/normal.gbcpal: gfx/pics/%/front.png
|
||||||
rgbgfx -p $@ $<
|
rgbgfx -p $@ $<
|
||||||
@ -118,7 +121,7 @@ gfx/pics/%/front.animated.tilemap: gfx/pics/%/front.2bpp gfx/pics/%/front.dimens
|
|||||||
# rgbgfx -o $@ $<
|
# rgbgfx -o $@ $<
|
||||||
|
|
||||||
|
|
||||||
# Misc file-specific graphics rules
|
### Misc file-specific graphics rules
|
||||||
|
|
||||||
gfx/shrink1.2bpp: rgbgfx += -h
|
gfx/shrink1.2bpp: rgbgfx += -h
|
||||||
gfx/shrink2.2bpp: rgbgfx += -h
|
gfx/shrink2.2bpp: rgbgfx += -h
|
||||||
@ -190,11 +193,13 @@ gfx/unknown/172f1f.2bpp: tools/gfx += --trim-whitespace
|
|||||||
|
|
||||||
%.2bpp: %.png
|
%.2bpp: %.png
|
||||||
rgbgfx $(rgbgfx) -o $@ $<
|
rgbgfx $(rgbgfx) -o $@ $<
|
||||||
$(if $(tools/gfx),tools/gfx $(tools/gfx) -o $@ $@)
|
$(if $(tools/gfx),\
|
||||||
|
tools/gfx $(tools/gfx) -o $@ $@)
|
||||||
|
|
||||||
%.1bpp: %.png
|
%.1bpp: %.png
|
||||||
rgbgfx $(rgbgfx) -d1 -o $@ $<
|
rgbgfx $(rgbgfx) -d1 -o $@ $<
|
||||||
$(if $(tools/gfx),tools/gfx $(tools/gfx) -d1 -o $@ $@)
|
$(if $(tools/gfx),\
|
||||||
|
tools/gfx $(tools/gfx) -d1 -o $@ $@)
|
||||||
|
|
||||||
%.tilemap: %.png
|
%.tilemap: %.png
|
||||||
rgbgfx -t $@ $<
|
rgbgfx -t $@ $<
|
||||||
|
Loading…
Reference in New Issue
Block a user