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

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

Remove part 0

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