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