From: Akim Demaille Date: Sun, 1 Apr 2012 13:09:54 +0000 (+0200) Subject: build: fix distcheck issues. X-Git-Tag: v2.7.90~461 X-Git-Url: https://git.saurik.com/bison.git/commitdiff_plain/45d4c012d3dab39a65ea71dee825d1146e0ac4a7 build: fix distcheck issues. For some reason it seems that texi2dvi -o no longer forces --clean mode, so we have stray TeX compilation files staying in top_builddir since TeX is run from there. While at it, upgrade the generation of the (completely obsolete) reference card. Target PDF. * doc/local.mk (TEXI2DVI): Pass --build-dir. (CLEANDIRS): More accurate. (doc/refcard.dvi): Replace with... (doc/refcard.pdf): this. Adjust dependencies. --- diff --git a/doc/local.mk b/doc/local.mk index b859c4b3..9d913ee7 100644 --- a/doc/local.mk +++ b/doc/local.mk @@ -21,7 +21,8 @@ doc_bison_TEXINFOS = \ doc/gpl-3.0.texi CLEANFILES = doc/bison.fns -CLEANDIRS = doc/*.t2d +TEXI2DVI = texi2dvi --build-dir=doc/bison.t2d +CLEANDIRS = doc/bison.t2d clean-local: rm -rf $(CLEANDIRS) @@ -46,12 +47,11 @@ MAINTAINERCLEANFILES = $(CROSS_OPTIONS_TEXI) ## ---------- ## EXTRA_DIST += doc/refcard.tex -CLEANFILES += doc/refcard.dvi doc/refcard.log doc/refcard.ps +CLEANFILES += doc/refcard.pdf -doc/refcard.dvi: doc/refcard.tex - $(AM_V_GEN)cd doc && tex refcard.tex +doc/refcard.pdf: doc/refcard.tex + $(AM_V_GEN) cd doc && pdftex $(abs_top_srcdir)/doc/refcard.tex -doc/refcard.ps: doc/refcard.dvi ## ---------------- ##