summaryrefslogtreecommitdiff
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
commit2dbb822f2200ff3a981f7c1a73bc482b07728030 (patch)
treed82966027173a581a70da921a03e43e1c1e1715b
parentda61f22c8a3f35c3e0b387f62e17895cafce9ddd (diff)
downloadgo-2dbb822f2200ff3a981f7c1a73bc482b07728030.tar.gz
Make.conf: fix if $HOME has spaces
R=r http://codereview.appspot.com/164086
-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)