view source/Makefile @ 98:93256a0987a2

Fix newer pep8 continuation complaint
author Neil Muller <drnlmuller@gmail.com>
date Mon, 02 Sep 2013 11:50:04 +0200
parents bcaa3b7a0890
children eba98879f47f
line wrap: on
line source

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

all: $(TARGETS)

install: $(TARGETS)
	set -ex; \
	for fn in $(TARGETS); do \
		mkdir -p ../data/"$$(dirname $$fn)"; \
		cp $$fn ../data/$$fn; \
	done

clean:
	rm -f $(TARGETS)

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