1 | xml2rfc = "../../xml2rfc/xml2rfc.tcl" |
---|
2 | saxpath = "$(HOME)/java/saxon-8-9-j/saxon8.jar" |
---|
3 | saxon = java -classpath $(saxpath) net.sf.saxon.Transform -novw -l |
---|
4 | |
---|
5 | stylesheet = ../myxml2rfc.xslt |
---|
6 | reduction = ../../rfc2629xslt/clean-for-DTD.xslt |
---|
7 | bap = ../../abnfparser/bap |
---|
8 | |
---|
9 | TARGETS = p1-messaging.html \ |
---|
10 | p2-semantics.html \ |
---|
11 | p3-payload.html \ |
---|
12 | p4-conditional.html \ |
---|
13 | p5-range.html \ |
---|
14 | p6-cache.html \ |
---|
15 | p7-auth.html \ |
---|
16 | p1-messaging.redxml \ |
---|
17 | p2-semantics.redxml \ |
---|
18 | p3-payload.redxml \ |
---|
19 | p4-conditional.redxml \ |
---|
20 | p5-range.redxml \ |
---|
21 | p6-cache.redxml \ |
---|
22 | p7-auth.redxml \ |
---|
23 | p1-messaging.txt \ |
---|
24 | p2-semantics.txt \ |
---|
25 | p3-payload.txt \ |
---|
26 | p4-conditional.txt \ |
---|
27 | p5-range.txt \ |
---|
28 | p6-cache.txt \ |
---|
29 | p7-auth.txt \ |
---|
30 | p1-messaging.abnf \ |
---|
31 | p2-semantics.abnf \ |
---|
32 | p3-payload.abnf \ |
---|
33 | p4-conditional.abnf \ |
---|
34 | p5-range.abnf \ |
---|
35 | p6-cache.abnf \ |
---|
36 | p7-auth.abnf \ |
---|
37 | p1-messaging.parsed-abnf \ |
---|
38 | p2-semantics.parsed-abnf \ |
---|
39 | p3-payload.parsed-abnf \ |
---|
40 | p4-conditional.parsed-abnf \ |
---|
41 | p5-range.parsed-abnf \ |
---|
42 | p6-cache.parsed-abnf \ |
---|
43 | p7-auth.parsed-abnf \ |
---|
44 | p1-messaging.abnf-appendix \ |
---|
45 | p2-semantics.abnf-appendix \ |
---|
46 | p3-payload.abnf-appendix \ |
---|
47 | p4-conditional.abnf-appendix \ |
---|
48 | p5-range.abnf-appendix \ |
---|
49 | p6-cache.abnf-appendix \ |
---|
50 | p7-auth.abnf-appendix \ |
---|
51 | p1-messaging.iana-headers \ |
---|
52 | p2-semantics.iana-headers \ |
---|
53 | p2-semantics.iana-methods \ |
---|
54 | p2-semantics.iana-status-codes \ |
---|
55 | p3-payload.iana-headers \ |
---|
56 | p4-conditional.iana-headers \ |
---|
57 | p5-range.iana-headers \ |
---|
58 | p6-cache.iana-headers \ |
---|
59 | p7-auth.iana-headers |
---|
60 | |
---|
61 | |
---|
62 | all: $(TARGETS) |
---|
63 | |
---|
64 | clean: |
---|
65 | rm -f $(TARGETS) |
---|
66 | |
---|
67 | %.html: %.xml $(stylesheet) |
---|
68 | $(saxon) $< $(stylesheet) > $@ |
---|
69 | |
---|
70 | %.redxml: %.xml $(reduction) |
---|
71 | $(saxon) $< $(reduction) > $@ |
---|
72 | |
---|
73 | %.txt: %.redxml |
---|
74 | $(xml2rfc) $< $@ |
---|
75 | |
---|
76 | %.abnf: %.xml ../../rfc2629xslt/extract-artwork.xslt |
---|
77 | $(saxon) $< ../../rfc2629xslt/extract-artwork.xslt type="abnf2616" >$@ |
---|
78 | |
---|
79 | %.parsed-abnf: %.abnf |
---|
80 | $(bap)/bap -i $(bap)/core.abnf < $< | sort | $(bap)/bap -i $(bap)/core.abnf -l 69 >$@ |
---|
81 | |
---|
82 | %.abnf-appendix: %.parsed-abnf |
---|
83 | $(saxon) $(basename $<).xml abnf2xml2rfc.xslt abnf="$<" >$@ |
---|
84 | |
---|
85 | %.xhtml: %.xml ../../rfc2629xslt/rfc2629toXHTML.xslt |
---|
86 | $(saxon) $< ../../rfc2629xslt/rfc2629toXHTML.xslt > $@ |
---|
87 | |
---|
88 | %.iana-headers: %.xml extract-header-defs.xslt |
---|
89 | $(saxon) $< extract-header-defs.xslt > $@ |
---|
90 | |
---|
91 | %.iana-methods: %.xml extract-method-defs.xslt |
---|
92 | $(saxon) $< extract-method-defs.xslt > $@ |
---|
93 | |
---|
94 | %.iana-status-codes: %.xml extract-status-code-defs.xslt |
---|
95 | $(saxon) $< extract-status-code-defs.xslt > $@ |
---|
96 | |
---|
97 | outlineALL.html: p1-messaging.xhtml \ |
---|
98 | p2-semantics.xhtml \ |
---|
99 | p3-payload.xhtml \ |
---|
100 | p4-conditional.xhtml \ |
---|
101 | p5-range.xhtml \ |
---|
102 | p6-cache.xhtml \ |
---|
103 | p7-auth.xhtml \ |
---|
104 | extractOutline.xslt |
---|
105 | $(saxon) extractOutline.xslt extractOutline.xslt > $@ |
---|
106 | rm p*.xhtml |
---|
107 | |
---|
108 | |
---|
109 | |
---|