protoc-gen-go-micro/examples/k8s/Makefile

10 lines
305 B
Makefile
Raw Normal View History

2016-12-13 21:09:29 +03:00
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 "$*"