X-Git-Url: https://git.ctpug.org.za/?a=blobdiff_plain;f=koperkapel%2Fimages%2FMakefile;h=c2ea50efd73184fa7f22b23e1af00f33daca91bb;hb=e72f6434e45fd2f5dbc223fc05dae5e69e9f30eb;hp=519112fc084552e8622ec6790d397bff9b9181a7;hpb=1b461881652d85894fbe5c13e790ce3e46feb452;p=koperkapel.git diff --git a/koperkapel/images/Makefile b/koperkapel/images/Makefile index 519112f..c2ea50e 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 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)