Add k8s example (#19)
This commit is contained in:
committed by
Manfred Touron
parent
514198f2e5
commit
6c946d62eb
10
examples/k8s/Makefile
Normal file
10
examples/k8s/Makefile
Normal file
@@ -0,0 +1,10 @@
|
||||
SOURCES := $(shell find . -name "*.proto" -not -path ./vendor/\*)
|
||||
|
||||
TARGETS_K8S := $(foreach source, $(SOURCES), $(source)_k8s)
|
||||
|
||||
.PHONY: build
|
||||
build: $(TARGETS_K8S)
|
||||
|
||||
$(TARGETS_K8S): %_k8s:
|
||||
@mkdir -p $(dir $*)gen
|
||||
protoc $(PROTOC_OPTS) --gotemplate_out=debug=true,template_dir=./templates:$(dir $*)gen "$*"
|
Reference in New Issue
Block a user