Placeholder grate image
[koperkapel.git] / koperkapel / images / Makefile
index 855b4d81b8f8d82d6b6702e7d40a2b095b8fdf87..2700e15f49dd17f5251dc4fdac75d8ace1485306 100644 (file)
@@ -2,13 +2,13 @@ VPATH=../../sources
 
 # Vector tiles
 
-TILE_DIRS=roach
+TILE_DIRS=roach serum vehicle_tiles
 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)