source: subversion/utils/osmarender4/Makefile @ 2188

Last change on this file since 2188 was 2117, checked in by jochen, 13 years ago
  • New way of generating symbol catalogue
  • New way of including symbols in symbol dir
File size: 933 bytes
Line 
1#
2#  Osmarender
3#
4#  Makefile
5#
6
7all: osmarender.xsl symbol-catalogue.png symbol-catalogue.pdf
8
9# Create osmarender.xsl XSL style sheet from its parts. You only need to
10# do this if you changed anything in the src directory.
11osmarender.xsl: src/*.xsl src/interactive.js
12        xmllint --xinclude src/main.xsl >osmarender.xsl
13
14# Create SVG file with symbols catalogue. This is for documentation only,
15# it is not needed for the maps.
16symbol-catalogue.svg: symbol-catalogue.xsl symbols/*
17        -(cd symbols; xmlstarlet ls >../symbols.dir)
18        ./xsltrans symbols.dir symbol-catalogue.xsl >$@
19        rm -f symbols.dir
20
21# Create PNG file with symbols catalogue from SVG file
22symbol-catalogue.png: symbol-catalogue.svg
23        inkscape --export-png=$@ --export-area-drawing --export-background=white $<
24
25symbol-catalogue.pdf: symbol-catalogue.svg
26        inkscape --export-ps=symbol-catalogue.ps --export-area-canvas $<
27        ps2pdf symbol-catalogue.ps
28        rm symbol-catalogue.ps
29
Note: See TracBrowser for help on using the repository browser.