summaryrefslogtreecommitdiff
path: root/src/Make.cmd
diff options
context:
space:
mode:
authorOndřej Surý <ondrej@sury.org>2011-01-17 12:40:45 +0100
committerOndřej Surý <ondrej@sury.org>2011-01-17 12:40:45 +0100
commit3e45412327a2654a77944249962b3652e6142299 (patch)
treebc3bf69452afa055423cbe0c5cfa8ca357df6ccf /src/Make.cmd
parentc533680039762cacbc37db8dc7eed074c3e497be (diff)
downloadgolang-3e45412327a2654a77944249962b3652e6142299.tar.gz
Imported Upstream version 2011.01.12upstream/2011.01.12
Diffstat (limited to 'src/Make.cmd')
-rw-r--r--src/Make.cmd15
1 files changed, 7 insertions, 8 deletions
diff --git a/src/Make.cmd b/src/Make.cmd
index b2a184b82..34f5663bc 100644
--- a/src/Make.cmd
+++ b/src/Make.cmd
@@ -2,22 +2,21 @@
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
-all: $(TARG)
+ifeq ($(GOOS),windows)
+TARG:=$(TARG).exe
+endif
-# ugly hack to deal with whitespaces in $GOROOT
-nullstring :=
-space := $(nullstring) # a space at the end
-QUOTED_GOROOT:=$(subst $(space),\ ,$(GOROOT))
+all: $(TARG)
include $(QUOTED_GOROOT)/src/Make.common
PREREQ+=$(patsubst %,%.make,$(DEPS))
-$(TARG): _go_.$O $(OFILES)
- $(QUOTED_GOBIN)/$(LD) -o $@ _go_.$O $(OFILES)
+$(TARG): _go_.$O
+ $(LD) -o $@ _go_.$O
_go_.$O: $(GOFILES) $(PREREQ)
- $(QUOTED_GOBIN)/$(GC) -o $@ $(GOFILES)
+ $(GC) -o $@ $(GOFILES)
install: $(QUOTED_GOBIN)/$(TARG)