github.com/darkowlzz/helm@v2.5.1-0.20171213183701-6707fe0468d4+incompatible/_proto/Makefile (about) 1 space := $(empty) $(empty) 2 comma := , 3 empty := 4 5 import_path = k8s.io/helm/pkg/proto/hapi 6 7 dst = ../pkg/proto 8 target = go 9 plugins = grpc 10 11 chart_ias = $(subst $(space),$(comma),$(addsuffix =$(import_path)/$(chart_pkg),$(addprefix M,$(chart_pbs)))) 12 chart_pbs = $(sort $(wildcard hapi/chart/*.proto)) 13 chart_pkg = chart 14 15 release_ias = $(subst $(space),$(comma),$(addsuffix =$(import_path)/$(release_pkg),$(addprefix M,$(release_pbs)))) 16 release_pbs = $(sort $(wildcard hapi/release/*.proto)) 17 release_pkg = release 18 19 services_ias = $(subst $(space),$(comma),$(addsuffix =$(import_path)/$(services_pkg),$(addprefix M,$(services_pbs)))) 20 services_pbs = $(sort $(wildcard hapi/services/*.proto)) 21 services_pkg = services 22 23 rudder_ias = $(subst $(space),$(comma),$(addsuffix =$(import_path)/$(rudder_pkg),$(addprefix M,$(rudder_pbs)))) 24 rudder_pbs = $(sort $(wildcard hapi/rudder/*.proto)) 25 rudder_pkg = rudder 26 27 version_ias = $(subst $(space),$(comma),$(addsuffix =$(import_path)/$(version_pkg),$(addprefix M,$(version_pbs)))) 28 version_pbs = $(sort $(wildcard hapi/version/*.proto)) 29 version_pkg = version 30 31 google_deps = Mgoogle/protobuf/timestamp.proto=github.com/golang/protobuf/ptypes/timestamp,Mgoogle/protobuf/any.proto=github.com/golang/protobuf/ptypes/any 32 33 .PHONY: all 34 all: chart release services rudder version 35 36 .PHONY: chart 37 chart: 38 PATH=../bin:$(PATH) protoc --$(target)_out=plugins=$(plugins),$(google_deps),$(chart_ias):$(dst) $(chart_pbs) 39 40 .PHONY: release 41 release: 42 PATH=../bin:$(PATH) protoc --$(target)_out=plugins=$(plugins),$(google_deps),$(chart_ias),$(version_ias):$(dst) $(release_pbs) 43 44 .PHONY: services 45 services: 46 PATH=../bin:$(PATH) protoc --$(target)_out=plugins=$(plugins),$(google_deps),$(chart_ias),$(version_ias),$(release_ias):$(dst) $(services_pbs) 47 48 .PHONY: rudder 49 rudder: 50 PATH=../bin:$(PATH) protoc --$(target)_out=plugins=$(plugins),$(google_deps),$(chart_ias),$(version_ias),$(release_ias):$(dst) $(rudder_pbs) 51 52 .PHONY: version 53 version: 54 PATH=../bin:$(PATH) protoc --$(target)_out=plugins=$(plugins),$(google_deps):$(dst) $(version_pbs) 55 56 .PHONY: clean 57 clean: 58 @rm -rf $(dst)/hapi 2>/dev/null