source: subversion/applications/utils/map-feature-ref/Makefile @ 29923

Last change on this file since 29923 was 15895, checked in by sward, 10 years ago

Some XSL stylesheets to generate references for Map Features.

File size: 838 bytes
Line 
1SHELL = /bin/sh
2FOP = fop
3XSLTPROC = xsltproc
4
5XSLT_SOURCES = mapfeatures-11-tab-sec-fo.xsl mapfeatures-1n-tab-sec-fo.xsl
6FO_TARGETS = $(XSLT_SOURCES:-fo.xsl=.fo)
7PDF_TARGETS = $(XSLT_SOURCES:-fo.xsl=.pdf)
8PS_TARGETS = $(XSLT_SOURCES:-fo.xsl=.ps)
9
10
11.PHONY: all pdf ps clean clean-pdf clean-ps
12
13all: pdf ps
14
15pdf: $(PDF_TARGETS)
16
17ps: $(PS_TARGETS)
18
19clean: clean-pdf clean-ps
20
21clean-pdf:
22        -rm $(PDF_TARGETS)
23
24clean-ps:
25        -rm $(PS_TARGETS)
26
27dist-clean: clean
28        -rm $(FO_TARGETS)
29
30
31# Rules specific to mapfeatures
32
33mapfeatures.xml:
34        perl mapfeatures.xslfo.pl >$@
35
36mapfeatures-%.fo: mapfeatures-%-fo.xsl mapfeatures.xml
37        $(XSLTPROC) --output $@ $^
38
39
40# General implicit rules for generating and processing formatting objects
41
42%.pdf: %.fo
43        $(FOP) -fo $< -pdf $@
44
45%.ps: %.fo
46        $(FOP) -fo $< -ps $@
47
48%.fo: %-fo.xsl %.xml
49        $(XSLTPROC) --output $@ $^
50
51
Note: See TracBrowser for help on using the repository browser.