]> sourceware.org Git - automake.git/commitdiff
* automake.in (handle_single_transform_list): Only add to
authorTom Tromey <tromey@redhat.com>
Sun, 27 Aug 2000 23:42:18 +0000 (23:42 +0000)
committerTom Tromey <tromey@redhat.com>
Sun, 27 Aug 2000 23:42:18 +0000 (23:42 +0000)
%dep_files if language is found and supports automatic dependency
tracking.  Fixes PR automake/75.

ChangeLog
automake.in

index ca44054ff189c49d6d8da5ea31dee592d6fcd3bf..606bb0661fe05bf08ac577c2a0227520af87b456 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2000-08-27  Tom Tromey  <tromey@cygnus.com>
 
+       * automake.in (handle_single_transform_list): Only add to
+       %dep_files if language is found and supports automatic dependency
+       tracking.  Fixes PR automake/75.
+
        * automake.in (am_primary_prefixes): Don't set `valid' for
        configure variables that don't satisfy the other constraints.
        Fixes PR automake/68.
index 9842b82156b17fec7e01611a9b71225097d95a75..26898de85b5c388d3cde3373bd9d3425c46a0969 100755 (executable)
@@ -1387,10 +1387,13 @@ sub handle_single_transform_list
 
            # Transform .o or $o file into .P file (for automatic
            # dependency code).
-           local ($depfile) = $object;
-           $depfile =~ s/\.([^.]*)$/.P$1/;
-           $depfile =~ s/\$\(OBJEXT\)$/o/ if $seen_objext;
-           $dep_files{'$(DEPDIR)/' . $depfile} = 1;
+           if ($lang && $language_map{$lang . '-autodep'} ne 'no')
+           {
+               local ($depfile) = $object;
+               $depfile =~ s/\.([^.]*)$/.P$1/;
+               $depfile =~ s/\$\(OBJEXT\)$/o/ if $seen_objext;
+               $dep_files{'$(DEPDIR)/' . $depfile} = 1;
+           }
        }
     }
 
This page took 0.03588 seconds and 5 git commands to generate.