comparison doku/funktionsweise/Makefile @ 54:2cbf8bdf20b2

* doku/funktionsweise/Makefile, doku/funktionsweise/funktionsweise-MXD-konverter.svg: New. Added a schema how the converter works
author Stephan Holl <stephan.holl@intevation.de>
date Mon, 16 May 2011 16:20:13 +0200
parents
children
comparison
equal deleted inserted replaced
53:691864097eb1 54:2cbf8bdf20b2
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)