From 08eff1132c5c9f7a0fb856d6c1f2ed905ce6c451 Mon Sep 17 00:00:00 2001 From: Abhishek Patro Date: Fri, 1 Dec 2023 15:08:50 -0800 Subject: [PATCH] clean previously generated proto files before generating new ones --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 2652e84..a3de7a6 100644 --- a/Makefile +++ b/Makefile @@ -60,6 +60,9 @@ integration: generate-certs generate-certs: go run tools/main.go +clean-generated: + find $(PROTO_DIR) -type f ! -name '*.proto' -delete + generate-golang: protoc --go_out=./ --go_opt=paths=source_relative $(PROTO_DIR)/*.proto @@ -69,7 +72,7 @@ generate-python: generate-ruby: protoc --ruby_out=$(PROTO_DIR)/ruby/ --proto_path=$(PROTO_DIR) $(PROTO_FILES) -generate-protos: generate-golang generate-python generate-ruby +generate-protos: clean-generated generate-golang generate-python generate-ruby image-gen: docker build -t $(ALPHA_IMAGE_NAME) .