From 55a1c6c12ffb7fb9e065c45e4d51a966a1e16f4f Mon Sep 17 00:00:00 2001 From: Alexandre Duret-Lutz Date: Sun, 18 Dec 2011 15:32:34 +0100 Subject: [PATCH] Fix compilation of tl.tex in VPATH builds. * doc/tl/Makefile.am (LATEXMK): Set BIBINPUTS for VPATH builds. (EXTRA_DIST): Distribute tl.tex and tl.bib. ($(srcdir)/tl.pdf): Fix update in srcdir. --- doc/tl/Makefile.am | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/doc/tl/Makefile.am b/doc/tl/Makefile.am index 7e069a86d..be12bf8a9 100644 --- a/doc/tl/Makefile.am +++ b/doc/tl/Makefile.am @@ -24,14 +24,15 @@ all: $(srcdir)/tl.pdf # The second -e '$$pdflatex... ' line can be replaced by -pdflatex on # recent version of latexmk; but version 4.13a, installed on some # of our hosts, does not support it. -LATEXMK = latexmk -pdf -ps- -dvi- -e '$$bibtex_use=2' \ +LATEXMK = BIBINPUTS='$(srcdir)' latexmk -pdf -ps- -dvi- -e '$$bibtex_use=2' \ -e '$$pdflatex="pdflatex %O \"\\def\\SpotVersion{$(VERSION)}\\input{%S}\""' dist_pdf_DATA = $(srcdir)/tl.pdf +EXTRA_DIST = tl.tex tl.bib $(srcdir)/tl.pdf: $(srcdir)/tl.tex $(srcdir)/tl.bib $(LATEXMK) $(srcdir)/tl.tex - test '$(srcdir)' = '.' || cp $@ $(srcdir)/$@ + test '$(srcdir)' = '.' || cp tl.pdf $@ pvc: $(LATEXMK) -pvc $(srcdir)/tl.tex