aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@linux.intel.com>2016-10-06 14:08:31 -0700
committerH. Peter Anvin <hpa@linux.intel.com>2016-10-06 14:12:39 -0700
commit93c93b0a2e3eb09f0b4ffce3b27f0306abf1b7cd (patch)
tree2a7f20454aa464437994ef9228f82b25313d67c7 /tools
parent194751404b09c532bb57f37de4c25a5b5580da93 (diff)
downloadnasm-93c93b0a2e3eb09f0b4ffce3b27f0306abf1b7cd.tar.gz
nasm-93c93b0a2e3eb09f0b4ffce3b27f0306abf1b7cd.tar.xz
nasm-93c93b0a2e3eb09f0b4ffce3b27f0306abf1b7cd.zip
alldeps: handle uses of full pathnames, e.g. "config/config.h"
Sometimes we really want to use an extended pathname for an include file, for documentation purposes; e.g. "config/config.h". This makes alldeps handle that case correctly (and also adds the config/ directory to directories scanned by alldeps). It is unclear if this will work correctly if there are include files with the same name in different directories, but we currently do not have any case like that. Reported-by: anonymous coward <nasm64developer@users.sf.net> Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Diffstat (limited to 'tools')
-rwxr-xr-xtools/mkdep.pl3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/mkdep.pl b/tools/mkdep.pl
index 8de0522e..cf8bf979 100755
--- a/tools/mkdep.pl
+++ b/tools/mkdep.pl
@@ -245,7 +245,8 @@ foreach my $dir ( @files ) {
push(@cfiles, $path);
} elsif ( $file =~ /\.[Hh]$/ ) {
print STDERR "Filesystem: $file -> $path\n";
- $dep_path{$file} = $path;
+ $dep_path{$file} = $path; # Allow the blank filename
+ $dep_path{$path} = $path; # Also allow the full pathname
}
}
closedir(DIR);