Add the source file itself to the dependency list.

This commit is contained in:
H. Peter Anvin 2002-05-12 21:40:21 +00:00
parent 1be3da32d2
commit 42661d845a

View file

@ -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";
}