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

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

add core.abnf, add make targets for reformatted ABNF (related to #36)

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