summaryrefslogtreecommitdiff
path: root/bin/automake.in
diff options
context:
space:
mode:
Diffstat (limited to 'bin/automake.in')
-rw-r--r--bin/automake.in20
1 files changed, 10 insertions, 10 deletions
diff --git a/bin/automake.in b/bin/automake.in
index d8ecca514..21cccbe9e 100644
--- a/bin/automake.in
+++ b/bin/automake.in
@@ -1242,14 +1242,16 @@ sub handle_languages ()
INTERNAL);
define_variable ('am__maybe_remake_depfiles', 'depfiles', INTERNAL);
define_variable ('am__depfiles_remade', "@dep_files", INTERNAL);
- # Generate each 'include' directive individually. Several make
- # implementations (IRIX 6, Solaris 10, FreeBSD 8) will fail to
- # properly include several files resulting from a variable
- # expansion. Just Generating many separate includes seems thus
- # safest.
$output_rules .= "\n";
+ my @dist_rms;
foreach my $depfile (@dep_files)
{
+ push @dist_rms, "\t-rm -f $depfile";
+ # Generate each 'include' directive individually. Several
+ # make implementations (IRIX 6, Solaris 10, FreeBSD 8) will
+ # fail to properly include several files resulting from a
+ # variable expansion. Just Generating many separate includes
+ # seems thus safest.
$output_rules .= subst ('AMDEP_TRUE') .
subst ('am__include') .
" " .
@@ -1262,11 +1264,9 @@ sub handle_languages ()
require_conf_file ("$am_file.am", FOREIGN, 'depcomp');
- # Compute the set of directories to remove in distclean-depend.
- my @dep_dirs = uniq (map { dirname ($_) } @dep_files);
- $output_rules .= file_contents ('depend',
- new Automake::Location,
- DEPDIRS => "@dep_dirs");
+ $output_rules .= file_contents (
+ 'depend', new Automake::Location,
+ 'DISTRMS' => join ("\n", @dist_rms));
}
}
else