Mercurial > mxd2map
annotate doku/funktionsweise/Makefile @ 247:30e10eb9ac68
Print out a message if an empty layer is not written to the mapfile.
author | raimund renkert <raimund.renkert@intevation.de> |
---|---|
date | Wed, 10 Aug 2011 13:23:29 +0200 |
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 |