Last change
on this file since 1211 was
1146,
checked in by julian.reschke@…, 12 years ago
|
add ABNF parsing to Makefile
|
-
Property svn:eol-style set to
native
-
Property svn:executable set to
*
|
File size:
1.0 KB
|
Rev | Line | |
---|
[1098] | 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 = ../../draft-ietf-httpbis/myxml2rfc.xslt |
---|
| 6 | reduction = ../../rfc2629xslt/clean-for-DTD.xslt |
---|
[1146] | 7 | bap = ../../abnfparser/bap |
---|
[1098] | 8 | |
---|
| 9 | TARGETS = draft-ietf-httpbis-content-disp.html \ |
---|
| 10 | draft-ietf-httpbis-content-disp.redxml \ |
---|
[1146] | 11 | draft-ietf-httpbis-content-disp.txt \ |
---|
| 12 | draft-ietf-httpbis-content-disp.parsed-abnf |
---|
[1098] | 13 | |
---|
| 14 | all: $(TARGETS) |
---|
| 15 | |
---|
| 16 | clean: |
---|
| 17 | rm -f $(TARGETS) |
---|
| 18 | |
---|
| 19 | %.html: %.xml $(stylesheet) |
---|
| 20 | $(saxon) $< $(stylesheet) > $@ |
---|
| 21 | |
---|
| 22 | %.redxml: %.xml $(reduction) |
---|
| 23 | $(saxon) $< $(reduction) > $@ |
---|
| 24 | |
---|
| 25 | %.txt: %.redxml |
---|
| 26 | $(xml2rfc) $< $@ |
---|
| 27 | |
---|
[1146] | 28 | |
---|
| 29 | %.abnf: %.xml ../../rfc2629xslt/extract-artwork.xslt |
---|
| 30 | $(saxon) $< ../../rfc2629xslt/extract-artwork.xslt type="abnf2616" >$@ |
---|
| 31 | %.parsed-abnf: %.abnf |
---|
| 32 | $(bap)/bap -i $(bap)/core.abnf < $< | sort | $(bap)/bap -k -i $(bap)/core.abnf -l 69 >$@ |
---|
[1098] | 33 | %.xhtml: %.xml ../../rfc2629xslt/rfc2629toXHTML.xslt |
---|
| 34 | $(saxon) $< ../../rfc2629xslt/rfc2629toXHTML.xslt > $@ |
---|
Note: See
TracBrowser
for help on using the repository browser.