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

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

add target for ABNF extraction

  • Property svn:eol-style set to native
File size: 2.3 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.iana-headers \
37          p2-semantics.iana-headers \
38          p2-semantics.iana-methods     \
39          p2-semantics.iana-status-codes \
40          p3-payload.iana-headers \
41          p4-conditional.iana-headers \
42          p5-range.iana-headers \
43          p6-cache.iana-headers \
44          p7-auth.iana-headers
45
46
47all: $(TARGETS)
48
49clean:
50        rm -f $(TARGETS)
51
52%.html: %.xml $(stylesheet)
53        $(saxon) $< $(stylesheet) > $@
54
55%.redxml: %.xml $(reduction)
56        $(saxon) $< $(reduction) > $@
57
58%.txt: %.redxml
59        $(xml2rfc) $< $@
60
61%.abnf: %.xml ../../rfc2629xslt/extract-artwork.xslt
62        $(saxon) $< ../../rfc2629xslt/extract-artwork.xslt type="abnf2616" >$@
63
64%.xhtml: %.xml ../../rfc2629xslt/rfc2629toXHTML.xslt
65        $(saxon) $< ../../rfc2629xslt/rfc2629toXHTML.xslt > $@
66
67%.iana-headers: %.xml extract-header-defs.xslt
68        $(saxon) $< extract-header-defs.xslt > $@
69
70%.iana-methods: %.xml extract-method-defs.xslt
71        $(saxon) $< extract-method-defs.xslt > $@
72
73%.iana-status-codes: %.xml extract-status-code-defs.xslt
74        $(saxon) $< extract-status-code-defs.xslt > $@
75
76outlineALL.html:        p1-messaging.xhtml \
77        p2-semantics.xhtml \
78        p3-payload.xhtml \
79        p4-conditional.xhtml \
80        p5-range.xhtml \
81        p6-cache.xhtml \
82        p7-auth.xhtml \
83        extractOutline.xslt
84        $(saxon) extractOutline.xslt extractOutline.xslt > $@
85        rm p*.xhtml
86
87
88
Note: See TracBrowser for help on using the repository browser.