summaryrefslogtreecommitdiff
path: root/mkdep.pl
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2002-05-12 21:40:21 +0000
committerH. Peter Anvin <hpa@zytor.com>2002-05-12 21:40:21 +0000
commit42661d845add6384c25d0fd8120e8756b8cff6da (patch)
tree5cc099da0918fa1093233843609dbc4f255a5b63 /mkdep.pl
parent1be3da32d24f82d7c8e2109d2ddd405832719ce8 (diff)
downloadnasm-42661d845add6384c25d0fd8120e8756b8cff6da.tar.gz
nasm-42661d845add6384c25d0fd8120e8756b8cff6da.tar.bz2
nasm-42661d845add6384c25d0fd8120e8756b8cff6da.zip
Add the source file itself to the dependency list.
Diffstat (limited to 'mkdep.pl')
-rwxr-xr-xmkdep.pl4
1 files changed, 2 insertions, 2 deletions
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";
}