summaryrefslogtreecommitdiff
path: root/docs-xml
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2009-05-01 15:31:14 +0200
committerJelmer Vernooij <jelmer@samba.org>2009-05-01 22:49:06 +0200
commitb1097e15327874869e9f154a147c615aa34bfa22 (patch)
tree7474068feaddfaead33284ba47f9d0070f06d82a /docs-xml
parenta1338d05eafb96f1dd88af4d2e3f332e83b4f922 (diff)
downloadsamba-b1097e15327874869e9f154a147c615aa34bfa22.tar.gz
samba-b1097e15327874869e9f154a147c615aa34bfa22.tar.bz2
samba-b1097e15327874869e9f154a147c615aa34bfa22.zip
Use system-provided dblatex to build the docs rather than included
db2latex.
Diffstat (limited to 'docs-xml')
-rw-r--r--docs-xml/Makefile26
1 files changed, 7 insertions, 19 deletions
diff --git a/docs-xml/Makefile b/docs-xml/Makefile
index 2a0a9d79b8..c313b4d18d 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
-