12 lines
451 B
Makefile
12 lines
451 B
Makefile
PROTOC_GEN_GO_VERSION := v1.36.12
|
|
PROTOC_GEN_GO_GRPC_VERSION := v1.5.1
|
|
|
|
.PHONY: tools generate
|
|
|
|
tools:
|
|
go install google.golang.org/protobuf/cmd/protoc-gen-go@$(PROTOC_GEN_GO_VERSION)
|
|
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@$(PROTOC_GEN_GO_GRPC_VERSION)
|
|
|
|
generate:
|
|
protoc --go_out=. --go_opt=paths=source_relative --go-grpc_out=. --go-grpc_opt=paths=source_relative micro_layout/proto/user/user.proto xt-user/proto/user/user.proto
|