Add the source file itself to the dependency list.
authorH. Peter Anvin <hpa@zytor.com>
Sun, 12 May 2002 21:40:21 +0000 (21:40 +0000)
committerH. Peter Anvin <hpa@zytor.com>
Sun, 12 May 2002 21:40:21 +0000 (21:40 +0000)
mkdep.pl

index 8092654..69743f6 100755 (executable)
--- 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";
     }