[446] | 1 | xml2rfc = "../../xml2rfc/xml2rfc.tcl" |
---|
[26] | 2 | saxpath = "$(HOME)/java/saxon-8-9-j/saxon8.jar" |
---|
[230] | 3 | saxon = java -classpath $(saxpath) net.sf.saxon.Transform -novw -l |
---|
[26] | 4 | |
---|
| 5 | stylesheet = ../myxml2rfc.xslt |
---|
| 6 | reduction = ../../rfc2629xslt/clean-for-DTD.xslt |
---|
[418] | 7 | bap = ../../abnfparser/bap |
---|
[26] | 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 \ |
---|
[406] | 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 \ |
---|
[417] | 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 \ |
---|
[421] | 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 \ |
---|
[308] | 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 \ |
---|
[700] | 57 | p4-conditional.iana-status-codes \ |
---|
[308] | 58 | p5-range.iana-headers \ |
---|
[700] | 59 | p5-range.iana-status-codes \ |
---|
[308] | 60 | p6-cache.iana-headers \ |
---|
[700] | 61 | p7-auth.iana-headers \ |
---|
| 62 | p7-auth.iana-status-codes |
---|
[26] | 63 | |
---|
[290] | 64 | |
---|
[26] | 65 | all: $(TARGETS) |
---|
| 66 | |
---|
| 67 | clean: |
---|
| 68 | rm -f $(TARGETS) |
---|
| 69 | |
---|
| 70 | %.html: %.xml $(stylesheet) |
---|
| 71 | $(saxon) $< $(stylesheet) > $@ |
---|
| 72 | |
---|
| 73 | %.redxml: %.xml $(reduction) |
---|
| 74 | $(saxon) $< $(reduction) > $@ |
---|
| 75 | |
---|
| 76 | %.txt: %.redxml |
---|
| 77 | $(xml2rfc) $< $@ |
---|
| 78 | |
---|
[406] | 79 | %.abnf: %.xml ../../rfc2629xslt/extract-artwork.xslt |
---|
| 80 | $(saxon) $< ../../rfc2629xslt/extract-artwork.xslt type="abnf2616" >$@ |
---|
| 81 | |
---|
[417] | 82 | %.parsed-abnf: %.abnf |
---|
[581] | 83 | $(bap)/bap -i $(bap)/core.abnf < $< | sort | $(bap)/bap -k -i $(bap)/core.abnf -l 69 >$@ |
---|
[417] | 84 | |
---|
[421] | 85 | %.abnf-appendix: %.parsed-abnf |
---|
[420] | 86 | $(saxon) $(basename $<).xml abnf2xml2rfc.xslt abnf="$<" >$@ |
---|
| 87 | |
---|
[202] | 88 | %.xhtml: %.xml ../../rfc2629xslt/rfc2629toXHTML.xslt |
---|
| 89 | $(saxon) $< ../../rfc2629xslt/rfc2629toXHTML.xslt > $@ |
---|
| 90 | |
---|
[308] | 91 | %.iana-headers: %.xml extract-header-defs.xslt |
---|
[290] | 92 | $(saxon) $< extract-header-defs.xslt > $@ |
---|
| 93 | |
---|
[308] | 94 | %.iana-methods: %.xml extract-method-defs.xslt |
---|
[288] | 95 | $(saxon) $< extract-method-defs.xslt > $@ |
---|
| 96 | |
---|
[308] | 97 | %.iana-status-codes: %.xml extract-status-code-defs.xslt |
---|
[288] | 98 | $(saxon) $< extract-status-code-defs.xslt > $@ |
---|
| 99 | |
---|
[202] | 100 | outlineALL.html: p1-messaging.xhtml \ |
---|
| 101 | p2-semantics.xhtml \ |
---|
| 102 | p3-payload.xhtml \ |
---|
| 103 | p4-conditional.xhtml \ |
---|
| 104 | p5-range.xhtml \ |
---|
| 105 | p6-cache.xhtml \ |
---|
| 106 | p7-auth.xhtml \ |
---|
| 107 | extractOutline.xslt |
---|
| 108 | $(saxon) extractOutline.xslt extractOutline.xslt > $@ |
---|
[217] | 109 | rm p*.xhtml |
---|
[202] | 110 | |
---|
[217] | 111 | |
---|
| 112 | |
---|