Skip to content

Commit eba5d35

Browse files
committed
Merge remote-tracking branch 'origin/main' into feature/production_docker_image
2 parents 8731dcf + dd86d89 commit eba5d35

162 files changed

Lines changed: 7468 additions & 7241 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Makefile

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,11 @@ env ?= env GOOS=$(os) GOARCH=$(arch)
5454
build_flags ?= -buildvcs=false -o
5555
go_build ?= $(env) $(go_cmd) build $(build_flags)
5656
go_test ?= $(go_cmd) test -json -v -timeout 30m
57+
proto_path ?=
58+
59+
ifneq ("$(wildcard /usr/include)","")
60+
proto_path += "/usr/include"
61+
endif
5762

5863
arch_output_dir_rel = $(arch_output_dir:${project_dir}/%=%)
5964

@@ -180,17 +185,17 @@ bench-sidecar: FORCE
180185
PROTO_TARGETS ?= $(shell find ./api \
181186
-name '*.proto' -print0 | \
182187
xargs -0 -n 1 dirname | xargs -n 1 basename | \
183-
sort -u | sed -e "s/^proto/proto-/" \
188+
sort -u | sed -E "s/^(.*)$$/proto-\1/" \
184189
)
185190

186191
proto: $(PROTO_TARGETS)
187192

188193
proto-%: FORCE
189194
@echo "Compiling: $*"
190195
@protoc --proto_path="${PWD}" \
191-
--proto_path="/usr/include" \
196+
--proto_path="${proto_path}" \
192197
--go-grpc_out=. --go-grpc_opt=paths=source_relative \
193-
--go_out=paths=source_relative:. ${PWD}/api/proto$*/*.proto
198+
--go_out=paths=source_relative:. ${PWD}/api/$*/*.proto
194199

195200
#########################
196201
# Binaries

0 commit comments

Comments
 (0)