mirror of
https://github.com/golang/go
synced 2024-11-25 15:57:57 -07:00
aafe474ec9
R=r CC=golang-dev https://golang.org/cl/1982049
30 lines
577 B
Batchfile
30 lines
577 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.
|
|
|
|
ifeq ($(GOOS),windows)
|
|
TARG:=$(TARG).exe
|
|
endif
|
|
|
|
all: $(TARG)
|
|
|
|
include $(QUOTED_GOROOT)/src/Make.common
|
|
|
|
PREREQ+=$(patsubst %,%.make,$(DEPS))
|
|
|
|
$(TARG): _go_.$O $(OFILES)
|
|
$(LD) -o $@ _go_.$O $(OFILES)
|
|
|
|
_go_.$O: $(GOFILES) $(PREREQ)
|
|
$(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)
|