# ---------------------------------------------------------------------
# -- Which container tool to use
# ---------------------------------------------------------------------
CONTAINER_TOOL ?= docker

container-go-protobuf:
	$(CONTAINER_TOOL) build -t gogen . && \
	$(CONTAINER_TOOL) run --rm \
		-v $$(pwd)/proto:/proto:z \
		-v $$(pwd)/pkg:/pkg:z \
		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")