2016-01-29 20:53:56 +01:00
|
|
|
.PHONY: test
|
|
|
|
|
|
|
|
all: check test
|
|
|
|
|
|
|
|
check: goimports govet
|
|
|
|
|
2017-01-20 02:10:17 +01:00
|
|
|
goimports:
|
2016-01-29 20:53:56 +01:00
|
|
|
@echo checking go imports...
|
2017-01-20 02:10:17 +01:00
|
|
|
@go get golang.org/x/tools/cmd/goimports
|
2016-01-29 20:53:56 +01:00
|
|
|
@! goimports -d . 2>&1 | egrep -v '^$$'
|
|
|
|
|
|
|
|
govet:
|
|
|
|
@echo checking go vet...
|
|
|
|
@go tool vet -structtags=false -methods=false .
|
|
|
|
|
2017-01-20 02:10:17 +01:00
|
|
|
test:
|
2016-01-29 20:53:56 +01:00
|
|
|
go test -v $(TEST_OPTS) ./...
|
|
|
|
|
2017-01-20 02:10:17 +01:00
|
|
|
install:
|
2016-01-29 20:53:56 +01:00
|
|
|
go install github.com/vmware/govmomi/govc
|
2017-01-20 02:10:17 +01:00
|
|
|
|
|
|
|
doc: install
|
|
|
|
./govc/usage.sh > ./govc/USAGE.md
|