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.
This commit is contained in:
Alexandre Duret-Lutz 2011-12-18 15:32:34 +01:00
parent 0536cdfb9b
commit 55a1c6c12f

View file

@ -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