docbook.rng: $(RNCFILES)
$(MAKE) -C build $@
+docbook-dtd.rng: $(RNCFILES)
+ $(MAKE) -C build $@
+
dbsmall.rng: $(RNCFILES)
$(MAKE) -C build $@
dbastro.rng: $(RNCFILES)
$(MAKE) -C build $@
+sdocbook.rng: $(RNCFILES)
+ $(MAKE) -C build $@
+ perl tools/trimgrammar.pl -o ,$@ $@
+ saxon ,$@ tools/trimgrammar.xsl $@ use.extensions=1
+
+slides-ng.rng: $(RNCFILES)
+ $(MAKE) -C build $@
+ perl tools/trimgrammar.pl -o ,$@ $@
+ saxon ,$@ tools/trimgrammar.xsl $@ use.extensions=1
+
+website-ng.rng: $(RNCFILES)
+ $(MAKE) -C build $@
+ perl tools/trimgrammar.pl -o ,$@ $@
+ saxon ,$@ tools/trimgrammar.xsl $@ use.extensions=1
+
+docbook.dtd: docbook-dtd.xml tools/doc2dtd.xsl
+ xsltproc --output $@ tools/doc2dtd.xsl $<
+ xjparse -d dtdtest.xml
+
tests:
mkdir -p tests tests/passed
cd tests && ../tools/runtests
html: docbook-rng.xml
xsltproc tools/html.xsl $<
+shtml: sdocbook-rng.xml
+ xsltproc tools/html.xsl $<
+
docbook-rng.xml: docbook.rng tools/rngdocxml.xsl tools/rngdocxml-multipass.xsl
- tools/makedoc $< $@
+ xsltproc -output $@ tools/rngdocxml.xsl $<
+
+docbook-dtd.xml: docbook-dtd.rng tools/rngdocxml.xsl tools/rngdocxml-multipass.xsl
+ xsltproc -output $@ tools/rngdocxml.xsl $<
-# xsltproc -output $@ tools/rngdocxml.xsl $<
+sdocbook-rng.xml: sdocbook.rng tools/rngdocxml.xsl tools/rngdocxml-multipass.xsl
+ xsltproc -output $@ tools/rngdocxml.xsl $<
clean:
rm -f out*
RNCFILES=$(subst ../src/,,$(wildcard ../src/*.rnc))
RNXFILES=$(subst .rnc,.rnx,$(RNCFILES))
-MODULES=$(filter-out docbook.rnx,$(RNXFILES))
+MODULES=$(filter-out docbook.rnx,$(filter-out sdocbook.rnx,$(filter-out slides-ng.rnx,$(filter-out website-ng.rnx,$(RNXFILES)))))
TMPDIR=/tmp/
TMPFILE=$(TMPDIR)cleanup.rng
docbook.rng: docbook.rnx $(AUGMENT) $(INCLUDE) $(CLEANUP)
+docbook-dtd.rng: docbook-dtd.rnx $(AUGMENT) $(INCLUDE) $(CLEANUP)
+
docbook.rnx: $(MODULES)
dbsmall.rng: dbsmall.rnx $(AUGMENT) $(INCLUDE) $(CLEANUP)
dbastro.rng: dbastro.rnx $(AUGMENT) $(INCLUDE) $(CLEANUP)
+sdocbook.rng: sdocbook.rnx $(AUGMENT) $(INCLUDE) $(CLEANUP)
+
+slides-ng.rng: slides-ng.rnx $(AUGMENT) $(INCLUDE) $(CLEANUP)
+
+website-ng.rng: website-ng.rnx $(AUGMENT) $(INCLUDE) $(CLEANUP)
+
dbastro.rnx: $(MODULES)
.rnx.rng: