forked from chef/automate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
25 lines (19 loc) · 754 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
##### TESTING
ruby-grpc-tools:
@if ! gem list grpc -i; then gem install grpc; fi > /dev/null
@if ! gem list grpc-tools -i; then gem install grpc-tools; fi > /dev/null
PROTOS = $(shell find ../../api/external/secrets ../../api/external/common -name '*.proto')
RUBY_PROTOS = $(patsubst %.proto, %_pb.rb, $(PROTOS))
generate-ruby-grpc: ruby-grpc-tools $(RUBY_PROTOS)
%_pb.rb : %.proto
@echo " * Compiling test proto for $<"
grpc_tools_ruby_protoc \
-I../../api \
-I../../components \
-I../../protovendor \
-I../../protovendor/github.com/grpc-ecosystem/grpc-gateway/third_party/googleapis \
--ruby_out=../.. \
--grpc_out=../.. \
$<
proto:
cd ../../ && hab studio run 'source .studiorc; compile_go_protobuf_component secrets-service'