Makefile 938 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. all: vet test testrace
  2. build:
  3. go build google.golang.org/grpc/...
  4. clean:
  5. go clean -i google.golang.org/grpc/...
  6. deps:
  7. GO111MODULE=on go get -d -v google.golang.org/grpc/...
  8. proto:
  9. @ if ! which protoc > /dev/null; then \
  10. echo "error: protoc not installed" >&2; \
  11. exit 1; \
  12. fi
  13. go generate google.golang.org/grpc/...
  14. test:
  15. go test -cpu 1,4 -timeout 7m google.golang.org/grpc/...
  16. testsubmodule:
  17. cd security/advancedtls && go test -cpu 1,4 -timeout 7m google.golang.org/grpc/security/advancedtls/...
  18. cd security/authorization && go test -cpu 1,4 -timeout 7m google.golang.org/grpc/security/authorization/...
  19. testrace:
  20. go test -race -cpu 1,4 -timeout 7m google.golang.org/grpc/...
  21. testdeps:
  22. GO111MODULE=on go get -d -v -t google.golang.org/grpc/...
  23. vet: vetdeps
  24. ./vet.sh
  25. vetdeps:
  26. ./vet.sh -install
  27. .PHONY: \
  28. all \
  29. build \
  30. clean \
  31. proto \
  32. test \
  33. testappengine \
  34. testappenginedeps \
  35. testrace \
  36. vet \
  37. vetdeps