CONTROLS=night default_cursor exit pause play day remove
BLANKS=circle square
SPLASH=splash new_game continue_retry help quit
+MOULD_ICON=tabakrolletjie_icon
IMG16=$(MOULD_BODY)
IMG32=$(MOULD_BODY) $(MOULD) $(LIGHT) seed $(LIGHT_MASK) $(CONTROLS)
IMG48=$(LIGHT) $(TURNIP) $(LIGHT_MASK) $(BLANKS)
IMG64=$(MOULD_BODY)
+ICONS=${MOULD_ICON}
CURSORS=seed $(LIGHT) remove
+ICON_SIZES=16 32 64 128
+
PNG16=$(patsubst %, 16/%.png, $(IMG16))
PNG32=$(patsubst %, 32/%.png, $(IMG32))
PNG48=$(patsubst %, 48/%.png, $(IMG48))
@mkdir -p `dirname $@`
@inkscape -z -e $@ $<
+icons/%.ico: %.svg
+ @mkdir -p `dirname $@`
+ for size in $(ICON_SIZES); do \
+ inkscape -z -e $(@D)/$*_"$$size".png -w "$$size" -h "$$size" $<; \
+ done
+ icotool -c -o $@ $(@D)/$*_*.png
+
cursors/%.png: 32/%.png
@cp $< $@