view source/Makefile @ 660:b33302b32f65 v0.1.x

Branch 0.1.x.
author Simon Cross <hodgestar@gmail.com>
date Sun, 08 Sep 2013 11:50:52 +0200
parents eba98879f47f
children 09c76e7ce675
line wrap: on
line source

SOURCES = $(shell find images -name '*.svg')
TARGETS = $(patsubst %.svg,../data/%.png,$(SOURCES))
OPTIMIZE = 1

all: $(TARGETS)

clean:
	rm -f $(TARGETS)

../data/%.png: %.svg
	mkdir -p $(dir $@)
	inkscape --export-png $@ --export-dpi 9 $<
ifeq ($(OPTIMIZE),1)
	optipng -o4 -preserve $@
	advpng -z4 $@
endif