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~178 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=0db2ff1c6b32d7ed37bee6fb3668d0c0b5173d25;p=automake.git * automake.in (&do_one_merge_target): Remove, was only called from... (&handle_merge_targets): here for `all'. Adjust. --- diff --git a/ChangeLog b/ChangeLog index 477999f4..94db73fd 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2001-03-05 Akim Demaille + + * automake.in (&do_one_merge_target): Remove, was only called from... + (&handle_merge_targets): here for `all'. + Adjust. + 2001-03-05 Akim Demaille Make the installation/uninstallation of Info pages follow the diff --git a/automake.in b/automake.in index 31f1f5b4..a0524223 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); }