mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
Use system-provided dblatex to build the docs rather than included
db2latex.
This commit is contained in:
parent
a1338d05ea
commit
b1097e1532
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user