Use latexmk to build tl.tex.
* doc/tl/Makefile.am: Rewrite using latexmk instead of texi2dvi. Also define the SpotVersion when calling latexmk, not in tl.tex. * doc/tl/tl.tex: Assume SpotVersion is defined outside the file.
This commit is contained in:
parent
0f11e5fe0e
commit
2f46267117
2 changed files with 15 additions and 8 deletions
|
|
@ -20,14 +20,18 @@
|
|||
|
||||
|
||||
all: $(srcdir)/tl.pdf
|
||||
TEXI2PDF = texi2dvi --pdf
|
||||
TEXI2PDF_FLAGS = --tidy --build-dir=tmp.t2d --batch
|
||||
LATEXMK = latexmk -pdf -ps- -dvi- -e '$$bibtex_use=2' \
|
||||
-pdflatex='pdflatex %O "\def\SpotVersion{$(VERSION)}\input{%S}"'
|
||||
|
||||
dist_pdf_DATA = $(srcdir)/tl.pdf
|
||||
|
||||
$(srcdir)/tl.pdf: $(srcdir)/tl.tex $(srcdir)/tl.bib
|
||||
$(TEXI2PDF) $(TEXI2PDF_FLAGS) -o $@ $<
|
||||
$(LATEXMK) $(srcdir)/tl.tex
|
||||
test '$(srcdir)' = '.' || cp $@ $(srcdir)/$@
|
||||
|
||||
.PHONY: mostlyclean-local
|
||||
pvc:
|
||||
$(LATEXMK) -pvc $(srcdir)/tl.tex
|
||||
|
||||
.PHONY: mostlyclean-local pvc
|
||||
mostlyclean-local:
|
||||
rm -rf tmp.t2d
|
||||
$(LATEXMK) -c $(srcdir)/tl.tex
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue