From: Stefano Lattarini Date: Sat, 11 Aug 2012 18:06:14 +0000 (+0200) Subject: [ng] texi: less use of transforms in 'texinfos.am' X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eeaef7538eca48afb3aec6f9ed261106aabf8b57;p=thirdparty%2Fautomake.git [ng] texi: less use of transforms in 'texinfos.am' * automake.in (handle_texinfo): Drop the 'MOSTLYCLEAN', 'TEXICLEAN' and 'MAINTCLEAN' transforms, instead adding directly to '%clean_dirs' as appropriate. * lib/am/texinfos.am: Adjust. Signed-off-by: Stefano Lattarini --- diff --git a/automake.in b/automake.in index 736194540..77d38fe39 100644 --- a/automake.in +++ b/automake.in @@ -2984,12 +2984,15 @@ sub handle_texinfo () chomp $clean; chomp $maintclean; } + # Append to dirs, not files, because the files in '$*clean' can also + # contain any directory created by "makeinfo --html", as well as the + # '*.t2d' and '*.t2p' directories used by texi2dvi and texi2pdf. + $clean_dirs{$mostlyclean} = MOSTLY_CLEAN; + $clean_dirs{$clean} = CLEAN; + $clean_dirs{$maintclean} = MAINTAINER_CLEAN; $output_rules .= file_contents ('texinfos', new Automake::Location, - MOSTLYCLEAN => $mostlyclean, - TEXICLEAN => $clean, - MAINTCLEAN => $maintclean, 'LOCAL-TEXIS' => !!$info_texinfos); } diff --git a/lib/am/texinfos.am b/lib/am/texinfos.am index 2b4756009..704c200d6 100644 --- a/lib/am/texinfos.am +++ b/lib/am/texinfos.am @@ -280,13 +280,5 @@ endif %?LOCAL-TEXIS% ## ---------- ## if %?LOCAL-TEXIS% -## Append to dirs, not files, because the %*CLEAN% substitutions can -## also contain any directory created by "makeinfo --html", as well as -## the '*.t2d' and '*.t2p' directories used by texi2dvi and texi2pdf. -am.clean.mostly.d += %MOSTLYCLEAN% -am.clean.normal.d += %TEXICLEAN% -am.clean.maint.d += %MAINTCLEAN% - am.clean.maint.f += $(foreach f,$(INFO_DEPS),$f $f-[0-9] $f-[0-9][0-9]) - endif %?LOCAL-TEXIS%