From: Adam Di Carlo Date: Thu, 23 Jan 2003 19:04:04 +0000 (+0000) Subject: conditionalize rules which are DSSSL or XSL only; now 'make MODE=xsl X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=edad060fc227865d96d0851c08f46d4bbbf794a8;p=docbook-dsssl conditionalize rules which are DSSSL or XSL only; now 'make MODE=xsl qandaset.001.pdf' works again --- diff --git a/testdocs/.cvsignore b/testdocs/.cvsignore index 7150c8d43..70039e6ca 100644 --- a/testdocs/.cvsignore +++ b/testdocs/.cvsignore @@ -1,12 +1,14 @@ +*.fo +*.htm *.html +*.index +*.index.xml +*.out +*.pdf +*.tex WhatsNew focustom.xsl htmlcustom.xsl -*.htm -*.index -*.index.xml -*.fo -mlang.fo mlang.sgm mlang.xml mtest diff --git a/testdocs/Makefile b/testdocs/Makefile index 8c276e2a7..1c9331430 100644 --- a/testdocs/Makefile +++ b/testdocs/Makefile @@ -29,7 +29,7 @@ DSSSLINDEXER ?= perl $(DSSSLROOT)/bin/collateindex.pl XSLPARAM ?= # what to use to format XSL FO -FO_FORMATTER ?= xep +FO_FORMATTER ?= tex # ====================================================================== @@ -91,35 +91,26 @@ else $(JADE) fo $(DSSSLPRINT) $< -o $@ endif +ifeq ($(MODE),dsssl) .xml.tex: ifeq ($(VALIDATE),1) $(XJPARSE) $< endif -ifeq ($(MODE),xsl) - @echo "don't know how to make TeX with XSL, is it useful?" >&2 - exit 1 -else $(JADE) tex $(DSSSLPRINT) $< -o $@ endif +ifeq ($(MODE),dsssl) .tex.dvi: -ifeq ($(MODE),xsl) - @echo "don't know how to do this in XSL, is it useful?" >&2 - exit 1 -else jadetex $< endif -.tex.pdf: ifeq ($(MODE),xsl) - @echo "don't know how to do this in XSL, is it useful?" >&2 - exit 1 -else +.tex.pdf: pdfjadetex $< endif -.fo.pdf: ifeq ($(MODE),xsl) +.fo.pdf: ifeq ($(FO_FORMATTER),tex) pdftex "&pdfxmltex" $< @if [ `grep Rerun $(basename $@).log | wc -l` -gt 0 ]; then \ @@ -139,10 +130,7 @@ else endif # xep endif # fop endif # tex -else # dsssl - @echo "don't know how to do this in DSSSL, is it useful?" >&2 - exit 1 -endif +endif # xsl # ======================================================================