[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 | |
---|
[813] | 9 | TARGETS_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 | |
---|
| 17 | TARGETS_ABNF= $(TARGETS_XML:.xml=.abnf) |
---|
| 18 | TARGETS_ABNFAPPENDIX= $(TARGETS_XML:.xml=.abnf-appendix) |
---|
| 19 | TARGETS_HTML= $(TARGETS_XML:.xml=.html) |
---|
| 20 | TARGETS_XHTML= $(TARGETS_XML:.xml=.xhtml) |
---|
| 21 | TARGETS_PARSEDABNF= $(TARGETS_XML:.xml=.parsed-abnf) |
---|
| 22 | TARGETS_REDXML= $(TARGETS_XML:.xml=.redxml) |
---|
| 23 | TARGETS_TXT= $(TARGETS_XML:.xml=.txt) |
---|
| 24 | |
---|
| 25 | TARGETS = $(TARGETS_HTML) \ |
---|
| 26 | $(TARGETS_REDXML) \ |
---|
| 27 | $(TARGETS_TXT) \ |
---|
| 28 | $(TARGETS_ABNF) \ |
---|
| 29 | $(TARGETS_PARSEDABNF) \ |
---|
| 30 | $(TARGETS_ABNFAPPENDIX) \ |
---|
[308] | 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 \ |
---|
[700] | 37 | p4-conditional.iana-status-codes \ |
---|
[308] | 38 | p5-range.iana-headers \ |
---|
[700] | 39 | p5-range.iana-status-codes \ |
---|
[308] | 40 | p6-cache.iana-headers \ |
---|
[817] | 41 | p6-cache.cache-directives \ |
---|
[700] | 42 | p7-auth.iana-headers \ |
---|
| 43 | p7-auth.iana-status-codes |
---|
[26] | 44 | |
---|
[290] | 45 | |
---|
[26] | 46 | all: $(TARGETS) |
---|
| 47 | |
---|
| 48 | clean: |
---|
| 49 | rm -f $(TARGETS) |
---|
| 50 | |
---|
| 51 | %.html: %.xml $(stylesheet) |
---|
| 52 | $(saxon) $< $(stylesheet) > $@ |
---|
| 53 | |
---|
| 54 | %.redxml: %.xml $(reduction) |
---|
| 55 | $(saxon) $< $(reduction) > $@ |
---|
| 56 | |
---|
| 57 | %.txt: %.redxml |
---|
| 58 | $(xml2rfc) $< $@ |
---|
| 59 | |
---|
[406] | 60 | %.abnf: %.xml ../../rfc2629xslt/extract-artwork.xslt |
---|
| 61 | $(saxon) $< ../../rfc2629xslt/extract-artwork.xslt type="abnf2616" >$@ |
---|
| 62 | |
---|
[417] | 63 | %.parsed-abnf: %.abnf |
---|
[581] | 64 | $(bap)/bap -i $(bap)/core.abnf < $< | sort | $(bap)/bap -k -i $(bap)/core.abnf -l 69 >$@ |
---|
[417] | 65 | |
---|
[421] | 66 | %.abnf-appendix: %.parsed-abnf |
---|
[420] | 67 | $(saxon) $(basename $<).xml abnf2xml2rfc.xslt abnf="$<" >$@ |
---|
| 68 | |
---|
[202] | 69 | %.xhtml: %.xml ../../rfc2629xslt/rfc2629toXHTML.xslt |
---|
| 70 | $(saxon) $< ../../rfc2629xslt/rfc2629toXHTML.xslt > $@ |
---|
| 71 | |
---|
[308] | 72 | %.iana-headers: %.xml extract-header-defs.xslt |
---|
[290] | 73 | $(saxon) $< extract-header-defs.xslt > $@ |
---|
| 74 | |
---|
[308] | 75 | %.iana-methods: %.xml extract-method-defs.xslt |
---|
[288] | 76 | $(saxon) $< extract-method-defs.xslt > $@ |
---|
| 77 | |
---|
[308] | 78 | %.iana-status-codes: %.xml extract-status-code-defs.xslt |
---|
[288] | 79 | $(saxon) $< extract-status-code-defs.xslt > $@ |
---|
| 80 | |
---|
[817] | 81 | %.cache-directives: %.xml extract-cache-directives.xslt |
---|
| 82 | $(saxon) $< extract-cache-directives.xslt > $@ |
---|
| 83 | |
---|
[813] | 84 | outlineALL.html: $(TARGETS_XHTML) \ |
---|
[202] | 85 | extractOutline.xslt |
---|
| 86 | $(saxon) extractOutline.xslt extractOutline.xslt > $@ |
---|
[217] | 87 | rm p*.xhtml |
---|
[202] | 88 | |
---|
[217] | 89 | |
---|
| 90 | |
---|