mirror of
https://github.com/golang/go
synced 2024-11-25 16:07:56 -07:00
91cb3489ab
Also delete gotest, since it's messy to fix and slated for deletion anyway. A couple of things outside src can't be tested any more. "go test" will be fixed and these tests will be re-enabled. They're noisy for now. Fixes #284. R=rsc CC=golang-dev https://golang.org/cl/5598049
34 lines
686 B
Batchfile
34 lines
686 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
|
|
|
|
ifeq ($(TARGDIR),)
|
|
TARGDIR:=$(QUOTED_GOBIN)
|
|
endif
|
|
|
|
all: $(TARG)
|
|
|
|
include $(QUOTED_GOROOT)/src/Make.common
|
|
|
|
PREREQ+=$(patsubst %,%.make,$(DEPS))
|
|
|
|
$(TARG): _go_.$O
|
|
$(LD) $(LDIMPORTS) -o $@ _go_.$O
|
|
|
|
_go_.$O: $(GOFILES) $(PREREQ)
|
|
$(GC) $(GCFLAGS) $(GCIMPORTS) -o $@ $(GOFILES)
|
|
|
|
install: $(TARGDIR)/$(TARG)
|
|
|
|
$(TARGDIR)/$(TARG): $(TARG)
|
|
mkdir -p $(TARGDIR) && cp -f $(TARG) $(TARGDIR)
|
|
|
|
CLEANFILES+=$(TARG) _test _testmain.go test.out build.out
|
|
|
|
nuke: clean
|
|
rm -f $(TARGDIR)/$(TARG)
|