Skip to content

Commit

Permalink
clean previously generated proto files before generating new ones
Browse files Browse the repository at this point in the history
  • Loading branch information
agbpatro committed Dec 1, 2023
1 parent a6638e4 commit 08eff11
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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) .
Expand Down

0 comments on commit 08eff11

Please sign in to comment.