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
RevLine 
[446]1xml2rfc = "../../xml2rfc/xml2rfc.tcl"
[26]2saxpath = "$(HOME)/java/saxon-8-9-j/saxon8.jar"
[230]3saxon = java -classpath $(saxpath) net.sf.saxon.Transform -novw -l
[26]4
5stylesheet = ../myxml2rfc.xslt
6reduction  = ../../rfc2629xslt/clean-for-DTD.xslt
[418]7bap  = ../../abnfparser/bap
[26]8
[1687]9TARGETS_XML= p0-introduction.xml \
10          p1-messaging.xml \
[813]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
[1643]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
[1663]25TARGETS_ABNFAPPENDIX= $(TARGETS_ABNF:.abnf=.abnf-appendix)
[813]26TARGETS_HTML= $(TARGETS_XML:.xml=.html)
27TARGETS_XHTML= $(TARGETS_XML:.xml=.xhtml)
[1643]28TARGETS_PARSEDABNF= $(TARGETS_ABNF:.abnf=.parsed-abnf)
[813]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) \
[308]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 \
[700]43          p4-conditional.iana-status-codes \
[308]44          p5-range.iana-headers \
[700]45          p5-range.iana-status-codes \
[308]46          p6-cache.iana-headers \
[1487]47          p6-cache.iana-warn-codes \
[817]48          p6-cache.cache-directives \
[700]49          p7-auth.iana-headers \
[1123]50          p7-auth.iana-status-codes \
51          httpbis.abnf
[26]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
[406]67%.abnf: %.xml ../../rfc2629xslt/extract-artwork.xslt
68        $(saxon) $< ../../rfc2629xslt/extract-artwork.xslt type="abnf2616" >$@
69
[417]70%.parsed-abnf: %.abnf
[581]71        $(bap)/bap -i $(bap)/core.abnf < $< | sort | $(bap)/bap -k -i $(bap)/core.abnf -l 69 >$@
[417]72
[421]73%.abnf-appendix: %.parsed-abnf
[420]74        $(saxon) $(basename $<).xml abnf2xml2rfc.xslt abnf="$<" >$@
75
[202]76%.xhtml: %.xml ../../rfc2629xslt/rfc2629toXHTML.xslt
77        $(saxon) $< ../../rfc2629xslt/rfc2629toXHTML.xslt > $@
78
[308]79%.iana-headers: %.xml extract-header-defs.xslt
[290]80        $(saxon) $< extract-header-defs.xslt > $@
81
[308]82%.iana-methods: %.xml extract-method-defs.xslt
[288]83        $(saxon) $< extract-method-defs.xslt > $@
84
[308]85%.iana-status-codes: %.xml extract-status-code-defs.xslt
[288]86        $(saxon) $< extract-status-code-defs.xslt > $@
87
[1487]88%.iana-warn-codes: %.xml extract-warn-code-defs.xslt
89        $(saxon) $< extract-warn-code-defs.xslt > $@
90
[817]91%.cache-directives: %.xml extract-cache-directives.xslt
92        $(saxon) $< extract-cache-directives.xslt > $@
93
[813]94outlineALL.html:        $(TARGETS_XHTML) \
[202]95        extractOutline.xslt
96        $(saxon) extractOutline.xslt extractOutline.xslt > $@
[217]97        rm p*.xhtml
[202]98
[1123]99httpbis.abnf:   $(TARGETS_ABNF)
[1147]100        ./common-abnf.sh $^ > $@
Note: See TracBrowser for help on using the repository browser.