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

Last change on this file since 1429 was 1147, checked in by fielding@…, 9 years ago

do not assume that . is in the exec path

  • Property svn:eol-style set to native
File size: 2.6 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
[813]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) \
[308]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 \
[700]37          p4-conditional.iana-status-codes \
[308]38          p5-range.iana-headers \
[700]39          p5-range.iana-status-codes \
[308]40          p6-cache.iana-headers \
[817]41          p6-cache.cache-directives \
[700]42          p7-auth.iana-headers \
[1123]43          p7-auth.iana-status-codes \
44          httpbis.abnf
[26]45
46all: $(TARGETS)
47
48clean:
49        rm -f $(TARGETS)
50
51%.html: %.xml $(stylesheet)
52        $(saxon) $< $(stylesheet) > $@
53
54%.redxml: %.xml $(reduction)
55        $(saxon) $< $(reduction) > $@
56
57%.txt: %.redxml
58        $(xml2rfc) $< $@
59
[406]60%.abnf: %.xml ../../rfc2629xslt/extract-artwork.xslt
61        $(saxon) $< ../../rfc2629xslt/extract-artwork.xslt type="abnf2616" >$@
62
[417]63%.parsed-abnf: %.abnf
[581]64        $(bap)/bap -i $(bap)/core.abnf < $< | sort | $(bap)/bap -k -i $(bap)/core.abnf -l 69 >$@
[417]65
[421]66%.abnf-appendix: %.parsed-abnf
[420]67        $(saxon) $(basename $<).xml abnf2xml2rfc.xslt abnf="$<" >$@
68
[202]69%.xhtml: %.xml ../../rfc2629xslt/rfc2629toXHTML.xslt
70        $(saxon) $< ../../rfc2629xslt/rfc2629toXHTML.xslt > $@
71
[308]72%.iana-headers: %.xml extract-header-defs.xslt
[290]73        $(saxon) $< extract-header-defs.xslt > $@
74
[308]75%.iana-methods: %.xml extract-method-defs.xslt
[288]76        $(saxon) $< extract-method-defs.xslt > $@
77
[308]78%.iana-status-codes: %.xml extract-status-code-defs.xslt
[288]79        $(saxon) $< extract-status-code-defs.xslt > $@
80
[817]81%.cache-directives: %.xml extract-cache-directives.xslt
82        $(saxon) $< extract-cache-directives.xslt > $@
83
[813]84outlineALL.html:        $(TARGETS_XHTML) \
[202]85        extractOutline.xslt
86        $(saxon) extractOutline.xslt extractOutline.xslt > $@
[217]87        rm p*.xhtml
[202]88
[1123]89httpbis.abnf:   $(TARGETS_ABNF)
[1147]90        ./common-abnf.sh $^ > $@
Note: See TracBrowser for help on using the repository browser.