Update Makefile.
Signed-off-by: Peter Edge <peter.edge@gmail.com>
This commit is contained in:
29
Makefile
29
Makefile
@ -1,15 +1,3 @@
|
|||||||
.PHONY: \
|
|
||||||
all \
|
|
||||||
deps \
|
|
||||||
updatedeps \
|
|
||||||
testdeps \
|
|
||||||
updatetestdeps \
|
|
||||||
build \
|
|
||||||
proto \
|
|
||||||
test \
|
|
||||||
testrace \
|
|
||||||
clean \
|
|
||||||
|
|
||||||
all: test testrace
|
all: test testrace
|
||||||
|
|
||||||
deps:
|
deps:
|
||||||
@ -32,7 +20,7 @@ proto:
|
|||||||
echo "error: protoc not installed" >&2; \
|
echo "error: protoc not installed" >&2; \
|
||||||
exit 1; \
|
exit 1; \
|
||||||
fi
|
fi
|
||||||
go get -v github.com/golang/protobuf/protoc-gen-go
|
go get -u -v github.com/golang/protobuf/protoc-gen-go
|
||||||
for file in $$(git ls-files '*.proto'); do \
|
for file in $$(git ls-files '*.proto'); do \
|
||||||
protoc -I $$(dirname $$file) --go_out=plugins=grpc:$$(dirname $$file) $$file; \
|
protoc -I $$(dirname $$file) --go_out=plugins=grpc:$$(dirname $$file) $$file; \
|
||||||
done
|
done
|
||||||
@ -44,7 +32,20 @@ testrace: testdeps
|
|||||||
go test -v -race -cpu 1,4 google.golang.org/grpc/...
|
go test -v -race -cpu 1,4 google.golang.org/grpc/...
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
go clean google.golang.org/grpc/...
|
go clean -i google.golang.org/grpc/...
|
||||||
|
|
||||||
coverage: testdeps
|
coverage: testdeps
|
||||||
./coverage.sh --coveralls
|
./coverage.sh --coveralls
|
||||||
|
|
||||||
|
.PHONY: \
|
||||||
|
all \
|
||||||
|
deps \
|
||||||
|
updatedeps \
|
||||||
|
testdeps \
|
||||||
|
updatetestdeps \
|
||||||
|
build \
|
||||||
|
proto \
|
||||||
|
test \
|
||||||
|
testrace \
|
||||||
|
clean \
|
||||||
|
coverage
|
||||||
|
Reference in New Issue
Block a user