1
0
mirror of https://github.com/golang/go synced 2024-11-19 10:44:47 -07:00
go/cmd/vet/Makefile
Rob Pike 08cc526448 go.tools/cmd/vet: update to new go/types package
Now that it's in the same repository as the go/types package we can delete
the mechanism to build it without type checking.

Add a make rule to install it where the go tool can find it.
Why doesn't "go install" take a -o flag?

R=gri
CC=gobot, golang-dev
https://golang.org/cl/9526043
2013-05-20 12:20:05 -07:00

15 lines
431 B
Makefile

# Copyright 2010 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.
# Assumes go/types is installed
test testshort:
go build
$(GOROOT)/test/errchk ./vet -printfuncs='Warn:1,Warnf:1' test_*.go test_*.s
# Install command where the go tool can find it.
install:
go build -o _vet
cp _vet $(GOROOT)/pkg/tool/$(GOOS)_$(GOARCH)/vet
rm -f _vet