diff options
author | Niall Sheridan <nsheridan@gmail.com> | 2016-06-06 14:44:38 +0100 |
---|---|---|
committer | Niall Sheridan <nsheridan@gmail.com> | 2016-06-06 14:44:38 +0100 |
commit | 067ad51b6a6ee8829612f51a6e6b2ade3eaa61b3 (patch) | |
tree | 301d2a7303e2b5db0c3fa1911d799e16f921d9dc /vendor/google.golang.org/grpc/Makefile | |
parent | 5ca59399fe0880368f88d17c0c9d781d836969c6 (diff) | |
parent | a18a13fb09eac00cdacf1f74080524182b7243de (diff) |
Merge pull request #17 from nsheridan/vendor
update dependencies
Diffstat (limited to 'vendor/google.golang.org/grpc/Makefile')
-rw-r--r-- | vendor/google.golang.org/grpc/Makefile | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/vendor/google.golang.org/grpc/Makefile b/vendor/google.golang.org/grpc/Makefile new file mode 100644 index 0000000..d26eb90 --- /dev/null +++ b/vendor/google.golang.org/grpc/Makefile @@ -0,0 +1,51 @@ +all: test testrace + +deps: + go get -d -v google.golang.org/grpc/... + +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/... + +proto: + @ if ! which protoc > /dev/null; then \ + echo "error: protoc not installed" >&2; \ + exit 1; \ + fi + go get -u -v github.com/golang/protobuf/protoc-gen-go + for file in $$(git ls-files '*.proto'); do \ + protoc -I $$(dirname $$file) --go_out=plugins=grpc:$$(dirname $$file) $$file; \ + done + +test: testdeps + go test -v -cpu 1,4 google.golang.org/grpc/... + +testrace: testdeps + go test -v -race -cpu 1,4 google.golang.org/grpc/... + +clean: + go clean -i google.golang.org/grpc/... + +coverage: testdeps + ./coverage.sh --coveralls + +.PHONY: \ + all \ + deps \ + updatedeps \ + testdeps \ + updatetestdeps \ + build \ + proto \ + test \ + testrace \ + clean \ + coverage |