source: draft-ietf-httpbis-content-disp/07/Makefile @ 1846

Last change on this file since 1846 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
Line 
1xml2rfc = "../../xml2rfc/xml2rfc.tcl"
2saxpath = "$(HOME)/java/saxon-8-9-j/saxon8.jar"
3saxon = java -classpath $(saxpath) net.sf.saxon.Transform -novw -l
4
5stylesheet = ../../draft-ietf-httpbis/myxml2rfc.xslt
6reduction  = ../../rfc2629xslt/clean-for-DTD.xslt
7bap  = ../../abnfparser/bap
8
9TARGETS = draft-ietf-httpbis-content-disp.html \
10          draft-ietf-httpbis-content-disp.redxml \
11          draft-ietf-httpbis-content-disp.txt \
12          draft-ietf-httpbis-content-disp.parsed-abnf
13
14all: $(TARGETS)
15
16clean:
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
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 >$@
33%.xhtml: %.xml ../../rfc2629xslt/rfc2629toXHTML.xslt
34        $(saxon) $< ../../rfc2629xslt/rfc2629toXHTML.xslt > $@
Note: See TracBrowser for help on using the repository browser.