From: Akim Demaille Date: Mon, 5 Mar 2001 14:47:39 +0000 (+0000) Subject: * automake.in (&do_one_merge_target): Remove, was only called from... X-Git-Tag: handle-languages~177 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=48eae09e4e383091fd1851fcb173e99f96f1b19a;p=thirdparty%2Fautomake.git * automake.in (&do_one_merge_target): Remove, was only called from... (&handle_merge_targets): here for `all'. Adjust. --- diff --git a/automake.in b/automake.in index 31f1f5b47..a0524223c 100755 --- a/automake.in +++ b/automake.in @@ -3980,61 +3980,26 @@ sub handle_merge_targets { $output_rules .= "install-binPROGRAMS: install-libLTLIBRARIES\n\n"; } - # Print definitions users can use. - &do_one_merge_target ('all', @all); -} - - -# &do_one_merge_target ($NAME, @VALUES) -# ------------------------------------- -# Helper for handle_merge_targets. Note that handle_merge_targets -# relies on the fact that this doesn't add an extra \n at the end. -sub do_one_merge_target -{ - my ($name, @values) = @_; - # Install hooks. - if (&target_defined ("$name-local")) + # Install `all' hooks. + if (&target_defined ("all-local")) { - # User defined local form of target. So include it. - if (defined $dependencies{"$name-am"}) - { - depend ("$name-am", "$name-local"); - } - else - { - push (@values, "$name-local"); - } - &depend ('.PHONY', "$name-local"); + push (@all, "all-local"); + &depend ('.PHONY', "all-local"); } - # FIXME: Gross, should disapear once all these targets properly - # registered in %dependencies. - if (!defined $dependencies {"$name-am"}) + &pretty_print_rule ("all-am:", "\t\t", @all); + + # If we aren't using a redirect target then find the + # appropriate actual redirect. + if ($all_target eq '') { - &pretty_print_rule ("$name-am:", "\t\t", @values); + $all_target = (&variable_defined ('SUBDIRS') + ? 'all-recursive' : 'all-am'); } - # To understand this special case, see handle_merge_targets. - if ($name eq 'all') - { - # If we aren't using a redirect target then find the - # appropriate actual redirect. - if ($all_target eq '') - { - $all_target = (&variable_defined ('SUBDIRS') - ? 'all-recursive' : 'all-am'); - } - - $output_all = "all: $all_target\n"; - } - else - { - my $lname = ($name . - (&variable_defined ('SUBDIRS') ? '-recursive' : '-am')); - &pretty_print_rule ($name . ":", "\t\t", $lname); - } - &depend ('.PHONY', $name . '-am', $name); + $output_all = "all: $all_target\n"; + &depend ('.PHONY', 'all-am', all); }