From: Tom Tromey Date: Mon, 25 Aug 1997 21:51:15 +0000 (+0000) Subject: OMIT_DEPENDENCIES patch X-Git-Tag: Release-1-2b~23 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4a1fc02ad1b25e8a317695e2951b86cc538b5af1;p=thirdparty%2Fautomake.git OMIT_DEPENDENCIES patch --- diff --git a/ChangeLog b/ChangeLog index 8ca515ae3..ff8ce90dd 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ Mon Aug 25 15:45:52 1997 Tom Tromey + * automake.in (scan_dependency_file): Fix so that + OMIT_DEPENDENCIES will work. From Alexander Lukyanov. + * automake.in (handle_texinfo): texi2dvi can generate `.cn' files. From Akim Demaille. diff --git a/automake.in b/automake.in index 8e2f35162..d2108df98 100755 --- a/automake.in +++ b/automake.in @@ -2624,6 +2624,9 @@ sub scan_dependency_file foreach $one_dep (split (' ', $_)) { + ($just_file = $one_dep) =~ s,^.*/,,; + next if defined $omit{$just_file}; + if ($one_dep =~ /^$fixup_rx/) { # The dependency points to the current directory in @@ -2643,12 +2646,8 @@ sub scan_dependency_file } else { - # Anything else is assumed to be correct. But first - # make sure it is not on our list of dependencies to - # omit. - ($just_file = $one_dep) =~ s,^.*/,,; - push (@dependencies, $one_dep) - if ! defined $omit{$just_file}; + # Anything else is assumed to be correct. + push (@dependencies, $one_dep); } } }