Hi Stefano, I found that the following patch is required at least for vc-dwim, where without it, "make distcheck" would fail due to the presence of vc-dwim.t2d/ and all of the files in that directory: they would not be removed because the rule was running "rm -rf doc/vc-dwim.t2d" from within the doc/ sub-directory. Obviously, we cannot use the doc/ prefix in that case.
With this patch, automake (master) still passes "make check". >From ae5038bb59ff9bf40567945683ce89aa680c2ad4 Mon Sep 17 00:00:00 2001 From: Jim Meyering <meyer...@redhat.com> Date: Sat, 30 Jun 2012 13:47:41 +0200 Subject: [PATCH] mostly-clean/texi: remove $relative_dir/ prefix * automake.in (handle_texinfo_helper): Add $infobase.{t2d,t2p} to @mostly_cleans, but *without* the $relative_dir/ prefix. --- automake.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/automake.in b/automake.in index 11e750d..be77870 100644 --- a/automake.in +++ b/automake.in @@ -3166,8 +3166,8 @@ sub handle_texinfo_helper ($) or next; # Directory of auxiliary files and build by-products used by texi2dvi # and texi2pdf. - push @mostly_cleans, "$relative_dir/$infobase.t2d"; - push @mostly_cleans, "$relative_dir/$infobase.t2p"; + push @mostly_cleans, "$infobase.t2d"; + push @mostly_cleans, "$infobase.t2p"; # If the Texinfo source is in a subdirectory, create the # resulting info in this subdirectory. If it is in the current -- 1.7.11.1.104.ge7b44f1