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

Last change on this file since 1829 was 1687, checked in by julian.reschke@…, 7 years ago

add skeleton for P0 (see #326)

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