From a3300e9403779cdb55a340635562b1b2ec00edf9 Mon Sep 17 00:00:00 2001 From: francoposa Date: Thu, 26 Dec 2024 20:10:41 -0800 Subject: [PATCH] fix Makefile --- Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 042d97a848a..f66ae934153 100644 --- a/Makefile +++ b/Makefile @@ -324,7 +324,11 @@ GENERATE_FILES ?= true %.pb.go: %.proto ifeq ($(GENERATE_FILES),true) - protoc -I $(GOPATH)/src:./vendor/github.com/gogo/protobuf:./vendor:./$(@D):./pkg/storegateway/storepb --gogoslick_out=plugins=grpc,Mgoogle/protobuf/any.proto=github.com/gogo/protobuf/types,:./$(@D) ./$(patsubst %.pb.go,%.proto,$@) + if [ "$@" != "*_custom_types.proto" ]; then \ + protoc -I $(GOPATH)/src:./vendor/github.com/gogo/protobuf:./vendor:./$(@D):./pkg/storegateway/storepb --gogoslick_out=plugins=grpc,Mgoogle/protobuf/any.proto=github.com/gogo/protobuf/types,:./$(@D) ./$(patsubst %.pb.go,%.proto,$@); \ + else \ + echo "Skipping $@"; \ + fi else @echo "Warning: generating files has been disabled, but the following file needs to be regenerated: $@" @echo "If this is unexpected, check if the last modified timestamps on $@ and $(patsubst %.pb.go,%.proto,$@) are correct."