forked from coinbase/temporal-ruby
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
15 lines (12 loc) · 705 Bytes
/
Makefile
File metadata and controls
15 lines (12 loc) · 705 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
PROTO_ROOT := proto
PROTO_FILES = $(shell find $(PROTO_ROOT) -name "*.proto")
PROTO_DIRS = $(sort $(dir $(PROTO_FILES)))
PROTO_OUT := lib/gen
proto:
$(foreach PROTO_DIR,$(PROTO_DIRS),bundle exec grpc_tools_ruby_protoc -Iproto --ruby_out=$(PROTO_OUT) --grpc_out=$(PROTO_OUT) $(PROTO_DIR)*.proto;)
# Need to only load imports if not disabled
sed -i "/require 'temporal/ s|\(.*\)|\1 unless ENV['COINBASE_TEMPORAL_RUBY_DISABLE_PROTO_LOAD'] == '1'|" \
lib/gen/temporal/api/operatorservice/v1/service_services_pb.rb
sed -i "/require 'temporal/ s|\(.*\)|\1 unless ENV['COINBASE_TEMPORAL_RUBY_DISABLE_PROTO_LOAD'] == '1'|" \
lib/gen/temporal/api/workflowservice/v1/service_services_pb.rb
.PHONY: proto