source: draft-ietf-httpbis/12/Makefile @ 1515

Last change on this file since 1515 was 817, checked in by julian.reschke@…, 10 years ago

Add IANA registry for cache directives (related to #208)

  • Property svn:eol-style set to native
File size: 2.5 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.cache-directives \
42          p7-auth.iana-headers \
43          p7-auth.iana-status-codes
44
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
60%.abnf: %.xml ../../rfc2629xslt/extract-artwork.xslt
61        $(saxon) $< ../../rfc2629xslt/extract-artwork.xslt type="abnf2616" >$@
62
63%.parsed-abnf: %.abnf
64        $(bap)/bap -i $(bap)/core.abnf < $< | sort | $(bap)/bap -k -i $(bap)/core.abnf -l 69 >$@
65
66%.abnf-appendix: %.parsed-abnf
67        $(saxon) $(basename $<).xml abnf2xml2rfc.xslt abnf="$<" >$@
68
69%.xhtml: %.xml ../../rfc2629xslt/rfc2629toXHTML.xslt
70        $(saxon) $< ../../rfc2629xslt/rfc2629toXHTML.xslt > $@
71
72%.iana-headers: %.xml extract-header-defs.xslt
73        $(saxon) $< extract-header-defs.xslt > $@
74
75%.iana-methods: %.xml extract-method-defs.xslt
76        $(saxon) $< extract-method-defs.xslt > $@
77
78%.iana-status-codes: %.xml extract-status-code-defs.xslt
79        $(saxon) $< extract-status-code-defs.xslt > $@
80
81%.cache-directives: %.xml extract-cache-directives.xslt
82        $(saxon) $< extract-cache-directives.xslt > $@
83
84outlineALL.html:        $(TARGETS_XHTML) \
85        extractOutline.xslt
86        $(saxon) extractOutline.xslt extractOutline.xslt > $@
87        rm p*.xhtml
88
89
90
Note: See TracBrowser for help on using the repository browser.