]> granicus.if.org Git - docbook-dsssl/commitdiff
Make the RNG files
authorNorman Walsh <ndw@nwalsh.com>
Wed, 31 Dec 2003 16:42:41 +0000 (16:42 +0000)
committerNorman Walsh <ndw@nwalsh.com>
Wed, 31 Dec 2003 16:42:41 +0000 (16:42 +0000)
docbook/relaxng/build/.cvsignore [new file with mode: 0644]
docbook/relaxng/build/Makefile [new file with mode: 0644]

diff --git a/docbook/relaxng/build/.cvsignore b/docbook/relaxng/build/.cvsignore
new file mode 100644 (file)
index 0000000..3948fa8
--- /dev/null
@@ -0,0 +1,2 @@
+*.rnx
+*.rng
diff --git a/docbook/relaxng/build/Makefile b/docbook/relaxng/build/Makefile
new file mode 100644 (file)
index 0000000..0fdccee
--- /dev/null
@@ -0,0 +1,32 @@
+VPATH=../src
+
+TMPDIR=/tmp
+TMPFILE=$(TMPDIR)cleanup.rng
+AUGMENT=../tools/augment.xsl
+INCLUDE=../tools/include.xsl
+EXPAND=../tools/expand.xsl
+GROUP=../tools/group.xsl
+FLATTEN=../tools/flatten.xsl
+CLASSIFY=../tools/classify.xsl
+CLEANUP=../tools/cleanup.pl
+
+.SUFFIXES: .rnc .rng .rnx
+
+all: docbook.rng
+
+docbook.rng: docbook.rnx hier.rnx pool.rnx calstbl.rnx htmltbl.rnx callouts.rnx \
+             ebnf.rnx svg.rnx mathml.rnx msgset.rnx htmlform.rnx refentry.rnx \
+             tasks.rnx \
+            $(AUGMENT) $(INCLUDE) $(CLEANUP)
+
+.rnx.rng:
+       saxon $< $(INCLUDE) $(TMPFILE) use.extensions=1
+       saxon $(TMPFILE) $(AUGMENT) $@ use.extensions=1
+       perl -i $(CLEANUP) $@
+
+.rnc.rnx:
+       trang -O rng $< $@
+
+clean:
+       rm -f *.rnx *.rng
+