Mercurial > trustbridge
comparison ui/img/src/Makefile @ 1171:76c469b460d8
ui/img: (issue115) Icon consistency improved by using inkscape automated export.
author | Bernhard Reiter <bernhard@intevation.de> |
---|---|
date | Fri, 19 Sep 2014 15:23:50 +0200 |
parents | |
children | b64f847bde09 |
comparison
equal
deleted
inserted
replaced
1170:37672abf0ca0 | 1171:76c469b460d8 |
---|---|
1 # Makefile inspired from oxygen-icons-4.13.0/scalable/export_pngs.sh | |
2 # needs ImageMagick and Inkscape | |
3 | |
4 svgs := $(wildcard *.svg) | |
5 | |
6 targets := $(patsubst %.svg,%-48.png,$(svgs)) | |
7 | |
8 all: $(targets) | |
9 | |
10 clean: | |
11 rm $(targets) $(patsubst %.svg,%.png,$(svgs)) | |
12 | |
13 %-48.png:%.svg | |
14 inkscape --without-gui "--export-png=$*.png" --export-dpi=72 --export-background-opacity=0 --export-width=512 --export-height=512 "$<" >/dev/null | |
15 convert -filter Sinc -resize 48x48 "$*.png" "$@" | |
16 |