summaryrefslogtreecommitdiff
path: root/make/calcdep.pl
diff options
context:
space:
mode:
Diffstat (limited to 'make/calcdep.pl')
-rwxr-xr-xmake/calcdep.pl5
1 files changed, 5 insertions, 0 deletions
diff --git a/make/calcdep.pl b/make/calcdep.pl
index c2e9b9510..a4bb7f4d6 100755
--- a/make/calcdep.pl
+++ b/make/calcdep.pl
@@ -12,6 +12,11 @@ sub gendep {
return $f2dep{$f} if exists $f2dep{$f};
$f2dep{$f} = '';
my %dep;
+ my $link = readlink $f;
+ if (defined $link) {
+ $link = "$basedir/$link" unless $link =~ m#^/#;
+ $dep{$link}++;
+ }
open my $in, '<', $f or die "Could not read $f";
while (<$in>) {
if (/^\s*#\s*include\s*"([^"]+)"/) {