From: Stefano Lattarini Date: Fri, 10 Aug 2012 15:44:57 +0000 (+0200) Subject: Merge branch 'master' into ng/master X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b71160a4a1420c0e68a10b71af8d0990ab3d781d;p=thirdparty%2Fautomake.git Merge branch 'master' into ng/master * master: automake: remove an unused local variable distcheck: more resilient against possible failures cleanup: remove almost-unused global var 'am_relative_dir' Signed-off-by: Stefano Lattarini --- b71160a4a1420c0e68a10b71af8d0990ab3d781d diff --cc automake.in index a7f423b97,8b8c405c2..d6bd1b017 --- a/automake.in +++ b/automake.in @@@ -3270,23 -3755,21 +3270,17 @@@ sub handle_dist ( push_dist_common ($file) if ($dir eq '.' || ! is_make_dir ($dir)); } + @configure_dist_common = (); } - # Files to distributed. Don't use ->value_as_list_recursive - # as it recursively expands '$(dist_pkgdata_DATA)' etc. - my @dist_common = split (' ', rvar ('DIST_COMMON')->variable_value); - @dist_common = uniq @dist_common; - variable_delete 'DIST_COMMON'; - define_pretty_variable ('DIST_COMMON', TRUE, INTERNAL, @dist_common); - - # Now that we've processed DIST_COMMON, disallow further attempts - # to set it. + # We don't expected further attempts to modify @dist_common + # after this point, so disallow it, for extra safety. $handle_dist_run = 1; - # Scan EXTRA_DIST to see if we need to distribute anything from a - # subdir. If so, add it to the list. I didn't want to do this - # originally, but there were so many requests that I finally - # relented. - my $extra_dist = var ('EXTRA_DIST'); - - $transform{'DISTCHECK-HOOK'} = !! rule 'distcheck-hook'; - $transform{'GETTEXT'} = $seen_gettext && !$seen_gettext_external; + define_variable ('am.dist.handle-distcheck-hook', INTERNAL, + rule ('distcheck-hook') ? 'yes' : ''); + define_variable ('am.dist.handle-gettext', INTERNAL, + $seen_gettext && !$seen_gettext_external ? 'yes' : ''); # If the target 'dist-hook' exists, make sure it is run. This # allows users to do random weird things to the distribution