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

Last change on this file since 1636 was 1487, checked in by julian.reschke@…, 8 years ago

Editorial: make IANA table handling consistent between warn codes and status codes (this includes giving each warn code a subsection to be referenced) (see #274)

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