diff options
Diffstat (limited to 'vendor/google.golang.org/grpc/Makefile')
-rw-r--r-- | vendor/google.golang.org/grpc/Makefile | 68 |
1 files changed, 38 insertions, 30 deletions
diff --git a/vendor/google.golang.org/grpc/Makefile b/vendor/google.golang.org/grpc/Makefile index 03bb01f..41a754f 100644 --- a/vendor/google.golang.org/grpc/Makefile +++ b/vendor/google.golang.org/grpc/Makefile | |||
@@ -1,52 +1,60 @@ | |||
1 | all: test testrace | 1 | all: vet test testrace testappengine |
2 | |||
3 | deps: | ||
4 | go get -d -v google.golang.org/grpc/... | ||
5 | |||
6 | updatedeps: | ||
7 | go get -d -v -u -f google.golang.org/grpc/... | ||
8 | |||
9 | testdeps: | ||
10 | go get -d -v -t google.golang.org/grpc/... | ||
11 | |||
12 | updatetestdeps: | ||
13 | go get -d -v -t -u -f google.golang.org/grpc/... | ||
14 | 2 | ||
15 | build: deps | 3 | build: deps |
16 | go build google.golang.org/grpc/... | 4 | go build google.golang.org/grpc/... |
17 | 5 | ||
6 | clean: | ||
7 | go clean -i google.golang.org/grpc/... | ||
8 | |||
9 | deps: | ||
10 | go get -d -v google.golang.org/grpc/... | ||
11 | |||
18 | proto: | 12 | proto: |
19 | @ if ! which protoc > /dev/null; then \ | 13 | @ if ! which protoc > /dev/null; then \ |
20 | echo "error: protoc not installed" >&2; \ | 14 | echo "error: protoc not installed" >&2; \ |
21 | exit 1; \ | 15 | exit 1; \ |
22 | fi | 16 | fi |
23 | go get -u -v github.com/golang/protobuf/protoc-gen-go | 17 | go generate google.golang.org/grpc/... |
24 | # use $$dir as the root for all proto files in the same directory | ||
25 | for dir in $$(git ls-files '*.proto' | xargs -n1 dirname | uniq); do \ | ||
26 | protoc -I $$dir --go_out=plugins=grpc:$$dir $$dir/*.proto; \ | ||
27 | done | ||
28 | 18 | ||
29 | test: testdeps | 19 | test: testdeps |
30 | go test -v -cpu 1,4 google.golang.org/grpc/... | 20 | go test -cpu 1,4 -timeout 7m google.golang.org/grpc/... |
21 | |||
22 | testappengine: testappenginedeps | ||
23 | goapp test -cpu 1,4 -timeout 7m google.golang.org/grpc/... | ||
24 | |||
25 | testappenginedeps: | ||
26 | goapp get -d -v -t -tags 'appengine appenginevm' google.golang.org/grpc/... | ||
27 | |||
28 | testdeps: | ||
29 | go get -d -v -t google.golang.org/grpc/... | ||
31 | 30 | ||
32 | testrace: testdeps | 31 | testrace: testdeps |
33 | go test -v -race -cpu 1,4 google.golang.org/grpc/... | 32 | go test -race -cpu 1,4 -timeout 7m google.golang.org/grpc/... |
34 | 33 | ||
35 | clean: | 34 | updatedeps: |
36 | go clean -i google.golang.org/grpc/... | 35 | go get -d -v -u -f google.golang.org/grpc/... |
36 | |||
37 | updatetestdeps: | ||
38 | go get -d -v -t -u -f google.golang.org/grpc/... | ||
39 | |||
40 | vet: vetdeps | ||
41 | ./vet.sh | ||
37 | 42 | ||
38 | coverage: testdeps | 43 | vetdeps: |
39 | ./coverage.sh --coveralls | 44 | ./vet.sh -install |
40 | 45 | ||
41 | .PHONY: \ | 46 | .PHONY: \ |
42 | all \ | 47 | all \ |
43 | deps \ | ||
44 | updatedeps \ | ||
45 | testdeps \ | ||
46 | updatetestdeps \ | ||
47 | build \ | 48 | build \ |
49 | clean \ | ||
50 | deps \ | ||
48 | proto \ | 51 | proto \ |
49 | test \ | 52 | test \ |
53 | testappengine \ | ||
54 | testappenginedeps \ | ||
55 | testdeps \ | ||
50 | testrace \ | 56 | testrace \ |
51 | clean \ | 57 | updatedeps \ |
52 | coverage | 58 | updatetestdeps \ |
59 | vet \ | ||
60 | vetdeps | ||