Mercurial > nagslang
view source/Makefile @ 115:6415db718b36
More albow
author | Neil Muller <drnlmuller@gmail.com> |
---|---|
date | Mon, 02 Sep 2013 15:04:42 +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