%dep_files if language is found and supports automatic dependency
tracking. Fixes PR automake/75.
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.
# 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;
+ }
}
}