1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +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@ PNMTOPS = @PNMTOPS@
HTML2TEXT = @HTML2TEXT@ HTML2TEXT = @HTML2TEXT@
PLUCKERBUILD = @PLUCKERBUILD@ PLUCKERBUILD = @PLUCKERBUILD@
THUMBPDF = @THUMBPDF@
PDFLATEX = TEXINPUTS=xslt/latex:.: @PDFLATEX@ PDFLATEX = TEXINPUTS=xslt/latex:.: @PDFLATEX@
LATEX = TEXINPUTS=xslt/latex:.: @LATEX@ LATEX = TEXINPUTS=xslt/latex:.: @LATEX@
RM = @RM@ RM = @RM@
@ -177,21 +178,25 @@ gpl.tex:
$(WGET) http://www.gnu.org/licenses/gpl.tex $(WGET) http://www.gnu.org/licenses/gpl.tex
latexfigures: $(LATEX_FIGURES) latexfigures: $(LATEX_FIGURES)
%.aux: %.tex
-$(PDFLATEX) $<
%.idx: %.aux
$(MAKEINDEX) `echo $< | sed -e 's/.aux//'`
# Adobe PDF files # Adobe PDF files
$(PDFDIR)/%.pdf: %.tex latexfigures gpl.tex $(PDFDIR)/%.pdf: %.tex %.aux %.idx latexfigures gpl.tex
-$(PDFLATEX) $< -$(PDFLATEX) $<
$(MAKEINDEX) `echo $< | sed -e 's/.tex//'`
-$(PDFLATEX) $< -$(PDFLATEX) $<
$(THUMBPDF) $(patsubst %.tex,%.pdf,$<)
-$(PDFLATEX) $< -$(PDFLATEX) $<
mv $(patsubst %.tex,%.pdf,$<) $@ mv $(patsubst %.tex,%.pdf,$<) $@
epsimages: $(HOWTODIR_IMAGES_EPS) epsimages: $(HOWTODIR_IMAGES_EPS)
# DVI files # DVI files
$(DVIDIR)/%.dvi: %.tex epsimages gpl.tex $(DVIDIR)/%.dvi: %.tex %.aux %.idx epsimages gpl.tex
-$(LATEX) $<
$(MAKEINDEX) `echo $< | sed -e 's/.tex//'`
-$(LATEX) $< -$(LATEX) $<
-$(LATEX) $< -$(LATEX) $<
mv $(patsubst %.tex,%.dvi,$<) $@ 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(WGET, wget, LATEX)
DOCS_TARGET_REQUIRE_PROGRAM(PDFLATEX, pdflatex, PDF) DOCS_TARGET_REQUIRE_PROGRAM(PDFLATEX, pdflatex, PDF)
DOCS_TARGET_REQUIRE_PROGRAM(EPSTOPDF, epstopdf, 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(PNGTOPNM, pngtopnm, PS)
DOCS_TARGET_REQUIRE_PROGRAM(PNMTOPS, pnmtops, PS) DOCS_TARGET_REQUIRE_PROGRAM(PNMTOPS, pnmtops, PS)
DOCS_TARGET_REQUIRE_PROGRAM(LATEX, latex, PS) DOCS_TARGET_REQUIRE_PROGRAM(LATEX, latex, PS)