]> Cypherpunks repositories - gostls13.git/commitdiff
fix windows Make.cmd:
authorAlex Brainman <alex.brainman@gmail.com>
Sun, 25 Jul 2010 23:55:25 +0000 (09:55 +1000)
committerAlex Brainman <alex.brainman@gmail.com>
Sun, 25 Jul 2010 23:55:25 +0000 (09:55 +1000)
- TARG had extra space at the end;
- it should be set before "all" target.

R=rsc, Joe Poirier
CC=golang-dev
https://golang.org/cl/1846042

src/Make.cmd

index b2b764f26d6b4277d38e7a47678e618d306b3619..1344010936a544fb686fcdcfd52bc1619ec15868 100644 (file)
@@ -2,6 +2,10 @@
 # Use of this source code is governed by a BSD-style
 # license that can be found in the LICENSE file.
 
+ifeq ($(GOOS),windows)
+TARG:=$(TARG).exe
+endif
+
 all: $(TARG)
 
 # ugly hack to deal with whitespaces in $GOROOT
@@ -11,10 +15,6 @@ QUOTED_GOROOT:=$(subst $(space),\ ,$(GOROOT))
 
 include $(QUOTED_GOROOT)/src/Make.common
 
-ifeq ($(GOOS),windows) 
-TARG:=$(TARG).exe 
-endif
-
 PREREQ+=$(patsubst %,%.make,$(DEPS))
 
 $(TARG): _go_.$O $(OFILES)