summaryrefslogtreecommitdiff
path: root/src/Make.conf
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2009-12-03 17:22:43 -0800
committerRuss Cox <rsc@golang.org>2009-12-03 17:22:43 -0800
commit6325ab07edbf52a568c695b172e010fc462ff489 (patch)
treed82966027173a581a70da921a03e43e1c1e1715b /src/Make.conf
parent4a513fd3b4a6cd780a7de1f217b64e4f19020ee7 (diff)
downloadgolang-6325ab07edbf52a568c695b172e010fc462ff489.tar.gz
Make.conf: fix if $HOME has spaces
R=r http://codereview.appspot.com/164086
Diffstat (limited to 'src/Make.conf')
-rw-r--r--src/Make.conf5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/Make.conf b/src/Make.conf
index 21eee4678..242fb7427 100644
--- a/src/Make.conf
+++ b/src/Make.conf
@@ -9,7 +9,10 @@ O=o
YFLAGS=-d
# GNU Make syntax:
ifndef GOBIN
-GOBIN="$(HOME)/bin"
+nullstring :=
+space := $(nullstring) # a space at the end
+QUOTED_HOME=$(subst $(space),\ ,$(HOME))
+GOBIN=$(QUOTED_HOME)/bin
endif
PWD=$(shell pwd)