]> granicus.if.org Git - docbook-dsssl/commitdiff
Added makefile, fixed paths
authorNorman Walsh <ndw@nwalsh.com>
Fri, 30 May 2008 16:56:04 +0000 (16:56 +0000)
committerNorman Walsh <ndw@nwalsh.com>
Fri, 30 May 2008 16:56:04 +0000 (16:56 +0000)
docbook/relaxng/publishers/src/Makefile [new file with mode: 0644]
docbook/relaxng/publishers/src/publishers.rnc

diff --git a/docbook/relaxng/publishers/src/Makefile b/docbook/relaxng/publishers/src/Makefile
new file mode 100644 (file)
index 0000000..a03a1fd
--- /dev/null
@@ -0,0 +1,36 @@
+include _header.mak
+
+REMOVESCHEMATRON=0
+
+SRCS = publishers.rnc
+
+BINARY = publishers.rnd
+
+# Fixme: publishers.dtd doesn't build (so can't build publishers.xsd)
+all:: publishers.rng publishers.rnc publishers.sch
+
+clean:: ; rm -f publishers.rng publishers.rnc publishers.dtd publishers.sch *.xsd
+
+$(_OUTTOP)/publishers/publishers.rng: publishers/publishers.rnc \
+                                  ../docbook/src/core.rnc \
+                                  publishers/dc.rnc \
+                                  publishers/dcterms.rnc \
+                                  publishers/dcmitype.rnc
+
+include _footer.mak
+
+publishers.rng: $(basename $(publishers_BINARY)).rnx
+       $(XSLTPROC) --param remove-schematron $(REMOVESCHEMATRON) --output $@ $(TOOLS)/removedoc.xsl $<
+
+publishers.rnc: publishers.rng
+       $(RUNTRANG) $< $@
+
+publishers.dtd: $(basename $(publishers_BINARY)).dtx publishers.rnc
+       $(XSLTPROC) -output $@ $(TOOLS)/xml2dtd.xsl $<
+
+publishers.sch: $(basename $(publishers_BINARY)).rnx
+       $(XSLTPROC) --output $@ $(TOOLS)/schematron.xsl $<
+
+publishers.xsd: publishers.dtd
+       $(RUNTRANG) $< $@
+
index 9ca3e289d7610508a7b083ca310958e6cb3c7af1..bbd577d6c4fd4f063248dd033e6a9cfa565e2080 100644 (file)
@@ -42,7 +42,7 @@ start = db.set
        | db.section
        | db.para
 
-include "core.rnc" {
+include "../../docbook/src/core.rnc" {
   start |= notAllowed
   db.sidebar |= notAllowed
   db.person |= notAllowed