github.com/danielqsj/helm@v2.0.0-alpha.4.0.20160908204436-976e0ba5199b+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  google_deps	 = Mgoogle/protobuf/timestamp.proto=github.com/golang/protobuf/ptypes/timestamp,Mgoogle/protobuf/any.proto=github.com/golang/protobuf/ptypes/any
    24  
    25  .PHONY: all
    26  all: chart release services
    27  
    28  chart:
    29  	PATH=../bin:$(PATH) protoc --$(target)_out=plugins=$(plugins),$(google_deps),$(chart_ias):$(dst) $(chart_pbs)
    30  
    31  release:
    32  	PATH=../bin:$(PATH) protoc --$(target)_out=plugins=$(plugins),$(google_deps),$(chart_ias):$(dst) $(release_pbs)
    33  
    34  services:
    35  	PATH=../bin:$(PATH) protoc --$(target)_out=plugins=$(plugins),$(google_deps),$(chart_ias),$(release_ias):$(dst) $(services_pbs)
    36  
    37  .PHONY: clean
    38  clean:
    39  	@rm -rf $(dst)/hapi 2>/dev/null