source: draft-ietf-httpbis/latest/Makefile @ 418

Last change on this file since 418 was 418, checked in by julian.reschke@…, 11 years ago

add sorting to the production of *.parsed-abnf (related to #36)

  • Property svn:eol-style set to native
File size: 2.8 KB
Line 
1xml2rfc = "$(HOME)/bin/xml2rfc-1.33/xml2rfc.tcl"
2saxpath = "$(HOME)/java/saxon-8-9-j/saxon8.jar"
3saxon = java -classpath $(saxpath) net.sf.saxon.Transform -novw -l
4
5stylesheet = ../myxml2rfc.xslt
6reduction  = ../../rfc2629xslt/clean-for-DTD.xslt
7bap  = ../../abnfparser/bap
8
9TARGETS = p1-messaging.html \
10          p2-semantics.html \
11          p3-payload.html \
12          p4-conditional.html \
13          p5-range.html \
14          p6-cache.html \
15          p7-auth.html \
16          p1-messaging.redxml \
17          p2-semantics.redxml \
18          p3-payload.redxml \
19          p4-conditional.redxml \
20          p5-range.redxml \
21          p6-cache.redxml \
22          p7-auth.redxml \
23          p1-messaging.txt \
24          p2-semantics.txt \
25          p3-payload.txt \
26          p4-conditional.txt \
27          p5-range.txt \
28          p6-cache.txt \
29          p7-auth.txt \
30          p1-messaging.abnf \
31          p2-semantics.abnf \
32          p3-payload.abnf \
33          p4-conditional.abnf \
34          p5-range.abnf \
35          p6-cache.abnf \
36          p7-auth.abnf \
37          p1-messaging.parsed-abnf \
38          p2-semantics.parsed-abnf \
39          p3-payload.parsed-abnf \
40          p4-conditional.parsed-abnf \
41          p5-range.parsed-abnf \
42          p6-cache.parsed-abnf \
43          p7-auth.parsed-abnf \
44          p1-messaging.iana-headers \
45          p2-semantics.iana-headers \
46          p2-semantics.iana-methods     \
47          p2-semantics.iana-status-codes \
48          p3-payload.iana-headers \
49          p4-conditional.iana-headers \
50          p5-range.iana-headers \
51          p6-cache.iana-headers \
52          p7-auth.iana-headers
53
54
55all: $(TARGETS)
56
57clean:
58        rm -f $(TARGETS)
59
60%.html: %.xml $(stylesheet)
61        $(saxon) $< $(stylesheet) > $@
62
63%.redxml: %.xml $(reduction)
64        $(saxon) $< $(reduction) > $@
65
66%.txt: %.redxml
67        $(xml2rfc) $< $@
68
69%.abnf: %.xml ../../rfc2629xslt/extract-artwork.xslt
70        $(saxon) $< ../../rfc2629xslt/extract-artwork.xslt type="abnf2616" >$@
71
72%.parsed-abnf: %.abnf
73        $(bap)/bap < $< | sort | $(bap)/bap -l 69 >$@
74
75p1-messaging.parsed-abnf: p1-messaging.abnf
76        $(bap)/bap -i $(bap)/core.abnf < $< | sort | $(bap)/bap  -i $(bap)/core.abnf -l 69 >$@
77
78%.xhtml: %.xml ../../rfc2629xslt/rfc2629toXHTML.xslt
79        $(saxon) $< ../../rfc2629xslt/rfc2629toXHTML.xslt > $@
80
81%.iana-headers: %.xml extract-header-defs.xslt
82        $(saxon) $< extract-header-defs.xslt > $@
83
84%.iana-methods: %.xml extract-method-defs.xslt
85        $(saxon) $< extract-method-defs.xslt > $@
86
87%.iana-status-codes: %.xml extract-status-code-defs.xslt
88        $(saxon) $< extract-status-code-defs.xslt > $@
89
90outlineALL.html:        p1-messaging.xhtml \
91        p2-semantics.xhtml \
92        p3-payload.xhtml \
93        p4-conditional.xhtml \
94        p5-range.xhtml \
95        p6-cache.xhtml \
96        p7-auth.xhtml \
97        extractOutline.xslt
98        $(saxon) extractOutline.xslt extractOutline.xslt > $@
99        rm p*.xhtml
100
101
102
Note: See TracBrowser for help on using the repository browser.