forked from TrueCloudLab/frostfs-api-go
Refactoring Makefile
This commit is contained in:
parent
e1b80111b7
commit
ba4aa98cc2
1 changed files with 5 additions and 1 deletions
6
Makefile
6
Makefile
|
@ -14,7 +14,6 @@ deps:
|
||||||
@go mod vendor
|
@go mod vendor
|
||||||
|
|
||||||
@echo "${B}${G}=> Cleanup old files ${R}"
|
@echo "${B}${G}=> Cleanup old files ${R}"
|
||||||
@find . -type f -name '*.pb.go' -not -path './vendor/*' -exec rm {} \;
|
|
||||||
@find . -type f -name '*.proto' -not -path './vendor/*' -not -name '*_test.proto' -exec rm {} \;
|
@find . -type f -name '*.proto' -not -path './vendor/*' -not -name '*_test.proto' -exec rm {} \;
|
||||||
|
|
||||||
@echo "${B}${G}=> NeoFS Proto files ${R}"
|
@echo "${B}${G}=> NeoFS Proto files ${R}"
|
||||||
|
@ -49,6 +48,9 @@ docgen: deps
|
||||||
|
|
||||||
# Regenerate proto files:
|
# Regenerate proto files:
|
||||||
protoc: deps
|
protoc: deps
|
||||||
|
@echo "${B}${G}=> Cleanup old files ${R}"
|
||||||
|
@find . -type f -name '*.pb.go' -not -path './vendor/*' -exec rm {} \;
|
||||||
|
|
||||||
@echo "${B}${G}=> Install specific version for gogo-proto ${R}"
|
@echo "${B}${G}=> Install specific version for gogo-proto ${R}"
|
||||||
@go list -f '{{.Path}}/...@{{.Version}}' -m github.com/gogo/protobuf | xargs go get -v
|
@go list -f '{{.Path}}/...@{{.Version}}' -m github.com/gogo/protobuf | xargs go get -v
|
||||||
@echo "${B}${G}=> Install specific version for protobuf lib ${R}"
|
@echo "${B}${G}=> Install specific version for protobuf lib ${R}"
|
||||||
|
@ -60,3 +62,5 @@ protoc: deps
|
||||||
--proto_path=.:./vendor:/usr/local/include \
|
--proto_path=.:./vendor:/usr/local/include \
|
||||||
--gofast_out=plugins=grpc,paths=source_relative:. $$f; \
|
--gofast_out=plugins=grpc,paths=source_relative:. $$f; \
|
||||||
done
|
done
|
||||||
|
|
||||||
|
update: docgen protoc
|
||||||
|
|
Loading…
Reference in a new issue