X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=make%2Fcalcdep.pl;h=a4bb7f4d6e44c7738eb6fff80158cca51def9227;hb=0b878f54cfce452b6829ab00950f6d062cec0f10;hp=c2e9b951099a7f76b63bd247184ea1e807621813;hpb=3e26f42a8f50905899fdd51c9bbf6d83c21a3321;p=user%2Fhenk%2Fcode%2Finspircd.git 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*"([^"]+)"/) {