k3s/vendor/google.golang.org/grpc/Makefile

49 lines
794 B
Makefile
Raw Normal View History

2019-01-12 04:58:27 +00:00
all: vet test testrace
2019-09-05 18:55:53 +00:00
deps:
go get -d -v google.golang.org/grpc/...
2019-09-25 05:00:42 +00:00
updatedeps:
go get -d -v -u -f google.golang.org/grpc/...
testdeps:
go get -d -v -t google.golang.org/grpc/...
updatetestdeps:
go get -d -v -t -u -f google.golang.org/grpc/...
build: deps
go build google.golang.org/grpc/...
2019-01-12 04:58:27 +00:00
proto:
@ if ! which protoc > /dev/null; then \
echo "error: protoc not installed" >&2; \
exit 1; \
fi
go generate google.golang.org/grpc/...
2019-09-25 05:00:42 +00:00
vet:
./vet.sh
2019-09-05 18:55:53 +00:00
2019-09-25 05:00:42 +00:00
test: testdeps
go test -cpu 1,4 -timeout 5m google.golang.org/grpc/...
2019-01-12 04:58:27 +00:00
testrace: testdeps
go test -race -cpu 1,4 -timeout 7m google.golang.org/grpc/...
2019-09-25 05:00:42 +00:00
clean:
go clean -i google.golang.org/grpc/...
2019-01-12 04:58:27 +00:00
.PHONY: \
all \
2019-09-05 18:55:53 +00:00
deps \
updatedeps \
2019-09-25 05:00:42 +00:00
testdeps \
2019-09-05 18:55:53 +00:00
updatetestdeps \
2019-09-25 05:00:42 +00:00
build \
proto \
2019-09-05 18:55:53 +00:00
vet \
2019-09-25 05:00:42 +00:00
test \
testrace \
clean