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

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

simplify Makefile

  • Property svn:eol-style set to native
File size: 2.4 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          p7-auth.iana-headers \
42          p7-auth.iana-status-codes
43
44
45all: $(TARGETS)
46
47clean:
48        rm -f $(TARGETS)
49
50%.html: %.xml $(stylesheet)
51        $(saxon) $< $(stylesheet) > $@
52
53%.redxml: %.xml $(reduction)
54        $(saxon) $< $(reduction) > $@
55
56%.txt: %.redxml
57        $(xml2rfc) $< $@
58
59%.abnf: %.xml ../../rfc2629xslt/extract-artwork.xslt
60        $(saxon) $< ../../rfc2629xslt/extract-artwork.xslt type="abnf2616" >$@
61
62%.parsed-abnf: %.abnf
63        $(bap)/bap -i $(bap)/core.abnf < $< | sort | $(bap)/bap -k -i $(bap)/core.abnf -l 69 >$@
64
65%.abnf-appendix: %.parsed-abnf
66        $(saxon) $(basename $<).xml abnf2xml2rfc.xslt abnf="$<" >$@
67
68%.xhtml: %.xml ../../rfc2629xslt/rfc2629toXHTML.xslt
69        $(saxon) $< ../../rfc2629xslt/rfc2629toXHTML.xslt > $@
70
71%.iana-headers: %.xml extract-header-defs.xslt
72        $(saxon) $< extract-header-defs.xslt > $@
73
74%.iana-methods: %.xml extract-method-defs.xslt
75        $(saxon) $< extract-method-defs.xslt > $@
76
77%.iana-status-codes: %.xml extract-status-code-defs.xslt
78        $(saxon) $< extract-status-code-defs.xslt > $@
79
80outlineALL.html:        $(TARGETS_XHTML) \
81        extractOutline.xslt
82        $(saxon) extractOutline.xslt extractOutline.xslt > $@
83        rm p*.xhtml
84
85
86
Note: See TracBrowser for help on using the repository browser.