R=golang-dev, rsc, cw, rsc
CC=golang-dev
https://golang.org/cl/
5576070
@true
install-default: $(TARG)
- cp $(TARG) "$(GOBIN)"/go-tool/$(TARG)
+ cp $(TARG) "$(GOROOT)"/bin/go-tool/$(TARG)
"go/build"
"os"
"os/exec"
+ "path/filepath"
"sort"
"strings"
)
var (
toolGoos = build.DefaultContext.GOOS
toolIsWindows = toolGoos == "windows"
- toolBinToolDir = build.Path[0].BinDir() + "/go-tool"
+ toolBinToolDir = filepath.Join(build.Path[0].Path, "bin", "go-tool")
)
const toolWindowsExtension = ".exe"
@true
install-default: $(TARG)
- cp $(TARG) "$(GOBIN)"/go-tool/$(TARG)
+ cp $(TARG) "$(GOROOT)"/bin/go-tool/$(TARG)
install-pprof: pprof
- cp pprof "$(GOBIN)"/go-tool/pprof
+ cp pprof "$(GOROOT)"/bin/go-tool/pprof