1
0
mirror of https://github.com/golang/go synced 2024-11-20 04:54:44 -07:00

fix windows Make.cmd:

- 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
This commit is contained in:
Alex Brainman 2010-07-26 09:55:25 +10:00
parent 7f9e247489
commit aa4639faf1

View File

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