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

Last change on this file since 1677 was 1663, checked in by julian.reschke@…, 7 years ago

Fix RFC2616-abnf list rule expansion problem in bap (abnfparser) (see #358)

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