softplayer-go-proto/Makefile

16 lines
559 B
Makefile
Raw Normal View History

2024-03-17 18:28:54 +00:00
# ---------------------------------------------------------------------
# -- Which container tool to use
# ---------------------------------------------------------------------
CONTAINER_TOOL ?= docker
container-go-protobuf:
$(CONTAINER_TOOL) build -t gogen . && \
$(CONTAINER_TOOL) run --rm \
2024-03-21 15:11:13 +00:00
-v $$(pwd)/proto:/proto:z \
-v $$(pwd)/pkg:/pkg:z \
2024-03-17 18:28:54 +00:00
gogen \
protoc --go_out=/pkg/ --go_opt=paths=source_relative \
--go-grpc_out=/pkg/ --go-grpc_opt=paths=source_relative \
--proto_path=proto/proto \
$$(find proto -type f -iname "*.proto")