blob: db982aabde6f7c682c87ce757329b29e4b71aeb0 [file] [log] [blame]
Takahiro Suzukid7bf8202020-12-17 20:21:59 +09001all: vet test testrace
2
3build: deps
4 go build google.golang.org/grpc/...
5
6clean:
7 go clean -i google.golang.org/grpc/...
8
9deps:
10 go get -d -v google.golang.org/grpc/...
11
12proto:
13 @ if ! which protoc > /dev/null; then \
14 echo "error: protoc not installed" >&2; \
15 exit 1; \
16 fi
17 go generate google.golang.org/grpc/...
18
19test: testdeps
20 go test -cpu 1,4 -timeout 7m google.golang.org/grpc/...
21
22testappengine: testappenginedeps
23 goapp test -cpu 1,4 -timeout 7m google.golang.org/grpc/...
24
25testappenginedeps:
26 goapp get -d -v -t -tags 'appengine appenginevm' google.golang.org/grpc/...
27
28testdeps:
29 go get -d -v -t google.golang.org/grpc/...
30
31testrace: testdeps
32 go test -race -cpu 1,4 -timeout 7m google.golang.org/grpc/...
33
34updatedeps:
35 go get -d -v -u -f google.golang.org/grpc/...
36
37updatetestdeps:
38 go get -d -v -t -u -f google.golang.org/grpc/...
39
40vet: vetdeps
41 ./vet.sh
42
43vetdeps:
44 ./vet.sh -install
45
46.PHONY: \
47 all \
48 build \
49 clean \
50 deps \
51 proto \
52 test \
53 testappengine \
54 testappenginedeps \
55 testdeps \
56 testrace \
57 updatedeps \
58 updatetestdeps \
59 vet \
60 vetdeps