view ui/img/src/Makefile @ 1402:1adf72328b75 tip

Added tag 1.0 for changeset ee807f64e21e
author Andre Heinecke <andre.heinecke@intevation.de>
date Tue, 27 Jan 2015 15:18:32 +0100
parents 57879b3ae12a
children
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)) do-changes-16.png

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" "$@"

%-16.png:%.svg
	inkscape --without-gui "--export-png=$@" --export-dpi=72 --export-background-opacity=0 --export-width=16 --export-height=16 "$<" >/dev/null

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