From: Jelmer Vernooij Date: Fri, 1 May 2009 13:31:14 +0000 (+0200) Subject: Use system-provided dblatex to build the docs rather than included X-Git-Tag: tdb-1.1.5~801 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b1097e15327874869e9f154a147c615aa34bfa22;p=thirdparty%2Fsamba.git Use system-provided dblatex to build the docs rather than included db2latex. --- diff --git a/docs-xml/Makefile b/docs-xml/Makefile index 2a0a9d79b86..c313b4d18db 100644 --- a/docs-xml/Makefile +++ b/docs-xml/Makefile @@ -14,6 +14,7 @@ export TEXINPUTS=xslt/latex:.: # Lists of files to process LATEX_FIGURES = xslt/figures/caution.pdf xslt/figures/important.pdf xslt/figures/note.pdf xslt/figures/tip.pdf xslt/figures/warning.pdf MANPAGES_PLUCKER = $(patsubst $(MANPAGEDIR3)/%.xml,$(PLUCKERDIR)/%.pdb,$(MANPAGES3)) +DBLATEX_OPTIONS = -p xslt/latex.xsl -i xslt/latex DATETIME := $(shell date +%Y%m%d%H%M%S) @@ -145,18 +146,12 @@ $(TXTDIR)/%.txt: $(HTMLDIR)/%.html %.tex: %/index.xml xslt/latex.xsl @echo "Generating $@..." @mkdir -p $(@D) - @$(XSLTPROC) $(DB2LATEX_ARGS) --stringparam latex.imagebasedir "$*/" --xinclude --output $@ xslt/latex.xsl $< + @$(DBLATEX) $(DBLATEX_OPTIONS) -t tex -o $@ $< $(PDFDIR)/%.pdf: %.pdf @mkdir -p $(@D) cp $< $@ -%.idx: %.tex $(LATEX_FIGURES) - -$(PDFLATEX) $< - -%.ind: %.idx - $(MAKEINDEX) $< - # Dependency files %.d: $(DOCBOOKDIR)/%.xml xslt/generate-dependencies.xsl @echo "Generating dependency file for $*" @@ -192,22 +187,17 @@ ifneq ($(MAKECMDGOALS),clobber) endif endif -# Adobe PDF files -%.pdf: %.tex %.ind $(LATEX_FIGURES) %-images-latex-png %-images-latex-pdf - -$(PDFLATEX) $< - -$(PDFLATEX) $< - -$(PDFLATEX) $< - -$(PDFLATEX) $< - $(THUMBPDF) --quiet $*.pdf - -$(PDFLATEX) $< +# Adobe PDF files +%.pdf: %/index.xml xslt/latex.xsl + $(DBLATEX) $(DBLATEX_OPTIONS) -I $*/images -t pdf -o $@ $< # DVI files $(DVIDIR)/%.dvi: %.dvi @mkdir -p $(@D) cp $< $@ -%.dvi: %.tex %.idx %-images-latex-eps - -$(LATEX) $< +%.dvi: %/index.xml xslt/latex.xsl + $(DBLATEX) $(DBLATEX_OPTIONS) -I $*/images -t dvi -o $@ $< %.eps: %.svg $(INKSCAPE) -z -f $< --export-eps=$@ @@ -328,8 +318,6 @@ realdistclean:: distclean rm -f configure rm -rf autom4te.cache - # Always keep intermediate files if we can .SECONDARY: .PHONY: clean clobber archive release everything all -