From 4d1e32528fcf9a44011184a99cff7493e363b400 Mon Sep 17 00:00:00 2001 From: danieldg Date: Sun, 13 Sep 2009 20:32:55 +0000 Subject: Force rebuild of symlinked modules when the source file changes git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11709 e03df62e-2008-0410-955e-edbf42e46eb7 --- make/calcdep.pl | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'make') 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*"([^"]+)"/) { -- cgit v1.2.3