1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

Generate thumbnails in PDF

(This used to be commit 0d6673a6ec)
This commit is contained in:
Jelmer Vernooij 2004-06-12 13:15:38 +00:00 committed by Gerald W. Carter
parent 3d732aae1b
commit c44900f332
2 changed files with 11 additions and 5 deletions

View File

@ -22,6 +22,7 @@ PNMTOPNG = @PNMTOPNG@
PNMTOPS = @PNMTOPS@
HTML2TEXT = @HTML2TEXT@
PLUCKERBUILD = @PLUCKERBUILD@
THUMBPDF = @THUMBPDF@
PDFLATEX = TEXINPUTS=xslt/latex:.: @PDFLATEX@
LATEX = TEXINPUTS=xslt/latex:.: @LATEX@
RM = @RM@
@ -177,21 +178,25 @@ gpl.tex:
$(WGET) http://www.gnu.org/licenses/gpl.tex
latexfigures: $(LATEX_FIGURES)
%.aux: %.tex
-$(PDFLATEX) $<
%.idx: %.aux
$(MAKEINDEX) `echo $< | sed -e 's/.aux//'`
# Adobe PDF files
$(PDFDIR)/%.pdf: %.tex latexfigures gpl.tex
$(PDFDIR)/%.pdf: %.tex %.aux %.idx latexfigures gpl.tex
-$(PDFLATEX) $<
$(MAKEINDEX) `echo $< | sed -e 's/.tex//'`
-$(PDFLATEX) $<
$(THUMBPDF) $(patsubst %.tex,%.pdf,$<)
-$(PDFLATEX) $<
mv $(patsubst %.tex,%.pdf,$<) $@
epsimages: $(HOWTODIR_IMAGES_EPS)
# DVI files
$(DVIDIR)/%.dvi: %.tex epsimages gpl.tex
-$(LATEX) $<
$(MAKEINDEX) `echo $< | sed -e 's/.tex//'`
$(DVIDIR)/%.dvi: %.tex %.aux %.idx epsimages gpl.tex
-$(LATEX) $<
-$(LATEX) $<
mv $(patsubst %.tex,%.dvi,$<) $@

View File

@ -40,6 +40,7 @@ DOCS_TARGET_REQUIRE_PROGRAM(MAKEINDEX, makeindex, LATEX)
DOCS_TARGET_REQUIRE_PROGRAM(WGET, wget, LATEX)
DOCS_TARGET_REQUIRE_PROGRAM(PDFLATEX, pdflatex, PDF)
DOCS_TARGET_REQUIRE_PROGRAM(EPSTOPDF, epstopdf, PDF)
DOCS_TARGET_REQUIRE_PROGRAM(THUMBPDF, thumbpdf, PDF)
DOCS_TARGET_REQUIRE_PROGRAM(PNGTOPNM, pngtopnm, PS)
DOCS_TARGET_REQUIRE_PROGRAM(PNMTOPS, pnmtops, PS)
DOCS_TARGET_REQUIRE_PROGRAM(LATEX, latex, PS)