view ui/img/src/Makefile @ 1207:e79fc57f1f9c

(issue121) icon pending-changes-overwiew switched to preferences-web-browser-cache
author Bernhard Reiter <bernhard@intevation.de>
date Tue, 23 Sep 2014 17:05:17 +0200
parents 76c469b460d8
children b64f847bde09
line wrap: on
line source
# Makefile inspired from oxygen-icons-4.13.0/scalable/export_pngs.sh
# needs ImageMagick and Inkscape

svgs := $(wildcard *.svg)

targets := $(patsubst %.svg,%-48.png,$(svgs))

all: $(targets)

clean: 
	rm $(targets) $(patsubst %.svg,%.png,$(svgs))

%-48.png:%.svg
	inkscape --without-gui "--export-png=$*.png" --export-dpi=72 --export-background-opacity=0 --export-width=512 --export-height=512 "$<" >/dev/null
	convert -filter Sinc -resize 48x48 "$*.png" "$@"

http://wald.intevation.org/projects/trustbridge/