From 4280a99c0826a8cb89b4ed99c373acfa9e1cd8e1 Mon Sep 17 00:00:00 2001 From: Norman Walsh Date: Wed, 19 Jan 2005 03:44:04 +0000 Subject: [PATCH] Cleanup --- docbook/relaxng/Makefile | 55 ++++++++++------------------------------ 1 file changed, 14 insertions(+), 41 deletions(-) diff --git a/docbook/relaxng/Makefile b/docbook/relaxng/Makefile index c054acdeb..c4bcbe677 100644 --- a/docbook/relaxng/Makefile +++ b/docbook/relaxng/Makefile @@ -5,57 +5,30 @@ VPATH=src RNCFILES=$(subst $(VPATH)/,,$(wildcard $(VPATH)/*.rnc)) -all: docbook.rng +all: docbook.rng docbook.dtd -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 ,$@ build/$@ - 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: $(RNCFILES) + $(MAKE) -C build $@ + trang $@ docbook.rnc -docbook-rng.xml: docbook.rng tools/rngdocxml.xsl tools/rngdocxml-multipass.xsl +docbook-rng.xml: docbook.rng tools/rngdocxml.xsl xsltproc -output $@ tools/rngdocxml.xsl $< -docbook-dtd.xml: docbook-dtd.rng tools/rngdocxml.xsl tools/rngdocxml-multipass.xsl - xsltproc -output $@ tools/rngdocxml.xsl $< +docbook-dtd.xml: docbook-rng.xml tools/doc2dtd.xsl + xsltproc -output $@ tools/doc2dtd.xsl $< -sdocbook-rng.xml: sdocbook.rng tools/rngdocxml.xsl tools/rngdocxml-multipass.xsl - xsltproc -output $@ tools/rngdocxml.xsl $< +docbook.dtd: docbook-dtd.xml tools/xml2dtd.xsl + xsltproc -output $@ tools/xml2dtd.xsl $< + +# ============================================================ clean: - rm -f out* + rm -f *-rng.xml *-dtd.xml \ No newline at end of file -- 2.40.0