Home | History | Annotate | Download | only in grpc
      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 testgaedeps:
     13 	goapp get -d -v -t -tags 'appengine appenginevm' google.golang.org/grpc/...
     14 
     15 updatetestdeps:
     16 	go get -d -v -t -u -f google.golang.org/grpc/...
     17 
     18 build: deps
     19 	go build google.golang.org/grpc/...
     20 
     21 proto:
     22 	@ if ! which protoc > /dev/null; then \
     23 		echo "error: protoc not installed" >&2; \
     24 		exit 1; \
     25 	fi
     26 	go generate google.golang.org/grpc/...
     27 
     28 vet:
     29 	./vet.sh
     30 
     31 test: testdeps
     32 	go test -cpu 1,4 -timeout 5m google.golang.org/grpc/...
     33 
     34 testrace: testdeps
     35 	go test -race -cpu 1,4 -timeout 7m google.golang.org/grpc/...
     36 
     37 testappengine: testgaedeps
     38 	goapp test -cpu 1,4 -timeout 5m google.golang.org/grpc/...
     39 
     40 clean:
     41 	go clean -i google.golang.org/grpc/...
     42 
     43 .PHONY: \
     44 	all \
     45 	deps \
     46 	updatedeps \
     47 	testdeps \
     48 	testgaedeps \
     49 	updatetestdeps \
     50 	build \
     51 	proto \
     52 	vet \
     53 	test \
     54 	testrace \
     55 	clean
     56