X-Git-Url: https://git.ctpug.org.za/?a=blobdiff_plain;f=koperkapel%2Fimages%2FMakefile;h=2bea035b8d8d9a8425b3f4cb5bd6a7cc3ae1bb76;hb=8754454c13d10de862306930ed6a1af90e5e9e04;hp=519112fc084552e8622ec6790d397bff9b9181a7;hpb=fe02e148aa49ee77b4d87e4fe89775aa7e043936;p=koperkapel.git diff --git a/koperkapel/images/Makefile b/koperkapel/images/Makefile index 519112f..2bea035 100644 --- a/koperkapel/images/Makefile +++ b/koperkapel/images/Makefile @@ -2,13 +2,13 @@ VPATH=../../sources # Vector tiles -TILE_DIRS=roach serum vehicle_tiles +TILE_DIRS=roach serum vehicle_tiles fixtures weapons TILE_SVGS=$(shell find $(patsubst %, $(VPATH)/vector/%, $(TILE_DIRS)) -name "*.svg") TILE_PNGS=$(patsubst $(VPATH)/vector/%.svg, %.png, $(TILE_SVGS)) # Bitmap tiles -BTILE_DIRS=wall floor tunnel underground +BTILE_DIRS=wall floor tunnel underground grate BTILE_SRC=$(shell find $(patsubst %, $(VPATH)/bitmap/%, $(BTILE_DIRS)) -name "*.png") BTILE_PNGS=$(patsubst $(VPATH)/bitmap/%, bunker/%, $(BTILE_SRC)) @@ -27,10 +27,16 @@ ROACH_QUARTET=$(patsubst roach/%, roach_quartet/%, $(ROACH)) ROACH_NONET=$(patsubst roach/%, roach_nonet/%, $(ROACH)) ROACH_BIG=$(patsubst roach/%, roach_big/%, $(ROACH)) +# Aggregate serum sprites + +SERUM=$(filter serum/%, $(TILE_PNGS)) +SERUM_BIG=$(patsubst serum/%, serum_big/%, $(SERUM)) + # Default target with everything all: $(TILE_PNGS) $(BTILE_PNGS) $(SIMPLE_PNGS)\ - $(ROACH_32) $(ROACH_21) $(ROACH_QUARTET) $(ROACH_NONET) $(ROACH_BIG) + $(ROACH_32) $(ROACH_21) $(ROACH_QUARTET) $(ROACH_NONET) $(ROACH_BIG)\ + $(SERUM_BIG) # Vector tile rule @@ -78,6 +84,12 @@ roach_big/%.png: vector/roach/%.svg @mkdir -p `dirname $@` @inkscape -z -e $@ -w 192 -h 192 $< +# Big serums + +serum_big/%.png: vector/serum/%.svg + @mkdir -p `dirname $@` + @inkscape -z -e $@ -w 192 -h 192 $< + # Roach quartet roach_quartet/roach_%.png: $(foreach i, 1 2 3 4, roach_32/roach_$(i).png)