From 42661d845add6384c25d0fd8120e8756b8cff6da Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin" Date: Sun, 12 May 2002 21:40:21 +0000 Subject: Add the source file itself to the dependency list. --- mkdep.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mkdep.pl') diff --git a/mkdep.pl b/mkdep.pl index 8092654..69743f6 100755 --- a/mkdep.pl +++ b/mkdep.pl @@ -76,9 +76,9 @@ foreach $dir ( @files ) { } foreach $file ( sort(keys(%deps)) ) { - if ( $file =~ /\.[Cc]$/ && scalar(@{$deps{$file}}) ) { + if ( $file =~ /\.[Cc]$/ ) { $ofile = $file; $ofile =~ s/\.[Cc]$/\./; $ofile .= $obj; - print $ofile, ': '; + print $ofile, ': ', $file, ' '; print join(' ', alldeps($file)); print "\n"; } -- cgit v1.2.3