annotate doku/funktionsweise/Makefile @ 288:04cfc5baf72d

linked to the press-releases on our website (without new tab-window)
author Stephan Holl <stephan.holl@intevation.de>
date Mon, 28 Nov 2011 14:36:06 +0100
parents 2cbf8bdf20b2
children
rev   line source
54
2cbf8bdf20b2 * doku/funktionsweise/Makefile,
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
1 # Makefile to get images from vector drawings.
2cbf8bdf20b2 * doku/funktionsweise/Makefile,
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
2 # Sketch (.sk)
2cbf8bdf20b2 * doku/funktionsweise/Makefile,
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
3 # SVG (.sk)
2cbf8bdf20b2 * doku/funktionsweise/Makefile,
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
4
2cbf8bdf20b2 * doku/funktionsweise/Makefile,
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
5 SKS=$(wildcard *.sk)
2cbf8bdf20b2 * doku/funktionsweise/Makefile,
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
6 SVG=$(wildcard *.svg)
2cbf8bdf20b2 * doku/funktionsweise/Makefile,
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
7 PNG=$(wildcard *.png)
2cbf8bdf20b2 * doku/funktionsweise/Makefile,
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
8
2cbf8bdf20b2 * doku/funktionsweise/Makefile,
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
9 OUTPUT_PNG_SK=$(SKS:sk=png)
2cbf8bdf20b2 * doku/funktionsweise/Makefile,
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
10 OUTPUT_PNG_SVG=$(SVG:svg=png)
2cbf8bdf20b2 * doku/funktionsweise/Makefile,
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
11 OUTPUT_PS_PNG=$(PNG:png=ps)
2cbf8bdf20b2 * doku/funktionsweise/Makefile,
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
12 OUTPUT_PS_SVG=$(SVG:svg=eps)
2cbf8bdf20b2 * doku/funktionsweise/Makefile,
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
13
2cbf8bdf20b2 * doku/funktionsweise/Makefile,
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
14 all: png
2cbf8bdf20b2 * doku/funktionsweise/Makefile,
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
15
2cbf8bdf20b2 * doku/funktionsweise/Makefile,
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
16 png: $(OUTPUT_PNG_SK) $(OUTPUT_PNG_SVG)
2cbf8bdf20b2 * doku/funktionsweise/Makefile,
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
17
2cbf8bdf20b2 * doku/funktionsweise/Makefile,
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
18 ps: $(OUTPUT_PS_SVG) $(OUTPUT_PS_PNG)
2cbf8bdf20b2 * doku/funktionsweise/Makefile,
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
19
2cbf8bdf20b2 * doku/funktionsweise/Makefile,
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
20 %.png: %.sk
2cbf8bdf20b2 * doku/funktionsweise/Makefile,
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
21 sk2ppm --bbox $*.sk | pnmtopng - > $*.png
2cbf8bdf20b2 * doku/funktionsweise/Makefile,
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
22
2cbf8bdf20b2 * doku/funktionsweise/Makefile,
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
23 %.png: %.svg
2cbf8bdf20b2 * doku/funktionsweise/Makefile,
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
24 inkscape -d 150 -D -e $*.png $*.svg
2cbf8bdf20b2 * doku/funktionsweise/Makefile,
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
25
2cbf8bdf20b2 * doku/funktionsweise/Makefile,
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
26 %.ps: %.png
2cbf8bdf20b2 * doku/funktionsweise/Makefile,
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
27 convert $*.png $*.ps
2cbf8bdf20b2 * doku/funktionsweise/Makefile,
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
28
2cbf8bdf20b2 * doku/funktionsweise/Makefile,
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
29 %.eps: %.svg
2cbf8bdf20b2 * doku/funktionsweise/Makefile,
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
30 inkscape -d 150 -D -E $*.eps $*.svg
2cbf8bdf20b2 * doku/funktionsweise/Makefile,
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
31
2cbf8bdf20b2 * doku/funktionsweise/Makefile,
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
32 clean:
2cbf8bdf20b2 * doku/funktionsweise/Makefile,
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
33 rm -f $(OUTPUT_PNG_SK) 2>/dev/null; true
2cbf8bdf20b2 * doku/funktionsweise/Makefile,
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
34 rm -f $(OUTPUT_PNG_SVG) 2>/dev/null; true
2cbf8bdf20b2 * doku/funktionsweise/Makefile,
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
35 rm -f $(OUTPUT_PS_PNG) 2>/dev/null; true
2cbf8bdf20b2 * doku/funktionsweise/Makefile,
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
36 rm -f $(OUTPUT_PS_SVG) 2>/dev/null; true
2cbf8bdf20b2 * doku/funktionsweise/Makefile,
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
37
2cbf8bdf20b2 * doku/funktionsweise/Makefile,
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
38
2cbf8bdf20b2 * doku/funktionsweise/Makefile,
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
39 .PHONY: png ps clean
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)