comparison doku/funktionsweise/Makefile @ 56:08913299e34f

Merged with Stephans commit.
author Raimund Renkert <rrenkert@intevation.de>
date Tue, 17 May 2011 11:55:03 +0200
parents 2cbf8bdf20b2
children
comparison
equal deleted inserted replaced
55:f0c02ff120d6 56:08913299e34f
1 # Makefile to get images from vector drawings.
2 # Sketch (.sk)
3 # SVG (.sk)
4
5 SKS=$(wildcard *.sk)
6 SVG=$(wildcard *.svg)
7 PNG=$(wildcard *.png)
8
9 OUTPUT_PNG_SK=$(SKS:sk=png)
10 OUTPUT_PNG_SVG=$(SVG:svg=png)
11 OUTPUT_PS_PNG=$(PNG:png=ps)
12 OUTPUT_PS_SVG=$(SVG:svg=eps)
13
14 all: png
15
16 png: $(OUTPUT_PNG_SK) $(OUTPUT_PNG_SVG)
17
18 ps: $(OUTPUT_PS_SVG) $(OUTPUT_PS_PNG)
19
20 %.png: %.sk
21 sk2ppm --bbox $*.sk | pnmtopng - > $*.png
22
23 %.png: %.svg
24 inkscape -d 150 -D -e $*.png $*.svg
25
26 %.ps: %.png
27 convert $*.png $*.ps
28
29 %.eps: %.svg
30 inkscape -d 150 -D -E $*.eps $*.svg
31
32 clean:
33 rm -f $(OUTPUT_PNG_SK) 2>/dev/null; true
34 rm -f $(OUTPUT_PNG_SVG) 2>/dev/null; true
35 rm -f $(OUTPUT_PS_PNG) 2>/dev/null; true
36 rm -f $(OUTPUT_PS_SVG) 2>/dev/null; true
37
38
39 .PHONY: png ps clean
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)