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, 4 insertions, 1 deletions
diff --git a/make/calcdep.pl b/make/calcdep.pl
index 279fdffce..f96afee33 100755
--- a/make/calcdep.pl
+++ b/make/calcdep.pl
@@ -20,6 +20,7 @@
BEGIN {
+ push @INC, $ENV{SOURCEPATH};
require 5.10.0;
unless (-f 'configure') {
print "Error: $0 must be run from the main source directory!\n";
@@ -32,6 +33,8 @@ use warnings FATAL => qw(all);
use File::Basename qw(basename);
+use make::common;
+
use constant {
BUILDPATH => $ENV{BUILDPATH},
SOURCEPATH => $ENV{SOURCEPATH}
@@ -50,7 +53,7 @@ run;
exit 0;
sub run() {
- mkdir BUILDPATH;
+ create_directory(BUILDPATH, 0770) or die "Could not create build directory: $!";
chdir BUILDPATH or die "Could not open build directory: $!";
unlink 'include';
symlink "${\SOURCEPATH}/include", 'include';