blob: 6f393a808dfaf9b645a4289fcdc2bebd5e4453b1 [file] [log] [blame]
Matthias Andreas Benkard832a54e2019-01-29 09:27:38 +01001all: vet test testrace
2
3deps:
4 go get -d -v google.golang.org/grpc/...
5
6updatedeps:
7 go get -d -v -u -f google.golang.org/grpc/...
8
9testdeps:
10 go get -d -v -t google.golang.org/grpc/...
11
12updatetestdeps:
13 go get -d -v -t -u -f google.golang.org/grpc/...
14
15build: deps
16 go build google.golang.org/grpc/...
17
18proto:
19 @ if ! which protoc > /dev/null; then \
20 echo "error: protoc not installed" >&2; \
21 exit 1; \
22 fi
23 go generate google.golang.org/grpc/...
24
25vet:
26 ./vet.sh
27
28test: testdeps
29 go test -cpu 1,4 -timeout 5m google.golang.org/grpc/...
30
31testrace: testdeps
32 go test -race -cpu 1,4 -timeout 7m google.golang.org/grpc/...
33
34clean:
35 go clean -i google.golang.org/grpc/...
36
37.PHONY: \
38 all \
39 deps \
40 updatedeps \
41 testdeps \
42 updatetestdeps \
43 build \
44 proto \
45 vet \
46 test \
47 testrace \
48 clean