aboutsummaryrefslogtreecommitdiff
path: root/src/make.bash
diff options
context:
space:
mode:
Diffstat (limited to 'src/make.bash')
-rwxr-xr-xsrc/make.bash6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/make.bash b/src/make.bash
index c778d922af..0a0f49455f 100755
--- a/src/make.bash
+++ b/src/make.bash
@@ -10,6 +10,12 @@ if [ ! -f env.bash ]; then
fi
. ./env.bash
+# Create target directories
+if [ "$GOBIN" = "$GOROOT/bin" ]; then
+ mkdir -p "$GOROOT/bin"
+fi
+mkdir -p "$GOROOT/pkg"
+
GOROOT_FINAL=${GOROOT_FINAL:-$GOROOT}
MAKEFLAGS=${MAKEFLAGS:-"-j4"}