mirror of
https://github.com/golang/go
synced 2024-11-20 05:34:40 -07:00
f9d6af9fb8
R=rsc CC=golang-dev https://golang.org/cl/661041
31 lines
714 B
Batchfile
31 lines
714 B
Batchfile
# Copyright 2009 The Go Authors. All rights reserved.
|
|
# Use of this source code is governed by a BSD-style
|
|
# license that can be found in the LICENSE file.
|
|
|
|
all: $(TARG)
|
|
|
|
# ugly hack to deal with whitespaces in $GOROOT
|
|
nullstring :=
|
|
space := $(nullstring) # a space at the end
|
|
QUOTED_GOROOT:=$(subst $(space),\ ,$(GOROOT))
|
|
|
|
include $(QUOTED_GOROOT)/src/Make.common
|
|
|
|
PREREQ+=$(patsubst %,%.make,$(DEPS))
|
|
|
|
$(TARG): _go_.$O $(OFILES)
|
|
$(QUOTED_GOBIN)/$(LD) -o $@ _go_.$O $(OFILES)
|
|
|
|
_go_.$O: $(GOFILES) $(PREREQ)
|
|
$(QUOTED_GOBIN)/$(GC) -o $@ $(GOFILES)
|
|
|
|
install: $(QUOTED_GOBIN)/$(TARG)
|
|
|
|
$(QUOTED_GOBIN)/$(TARG): $(TARG)
|
|
cp -f $(TARG) $(QUOTED_GOBIN)
|
|
|
|
CLEANFILES+=$(TARG)
|
|
|
|
nuke: clean
|
|
rm -f $(QUOTED_GOBIN)/$(TARG)
|