Matthias Andreas Benkard | 832a54e | 2019-01-29 09:27:38 +0100 | [diff] [blame] | 1 | all: vet test testrace |
| 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 | |
| 15 | build: deps |
| 16 | go build google.golang.org/grpc/... |
| 17 | |
| 18 | proto: |
| 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 | |
| 25 | vet: |
| 26 | ./vet.sh |
| 27 | |
| 28 | test: testdeps |
| 29 | go test -cpu 1,4 -timeout 5m google.golang.org/grpc/... |
| 30 | |
| 31 | testrace: testdeps |
| 32 | go test -race -cpu 1,4 -timeout 7m google.golang.org/grpc/... |
| 33 | |
| 34 | clean: |
| 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 |