- 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
# 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
include $(QUOTED_GOROOT)/src/Make.common
-ifeq ($(GOOS),windows)
-TARG:=$(TARG).exe
-endif
-
PREREQ+=$(patsubst %,%.make,$(DEPS))
$(TARG): _go_.$O $(OFILES)