Skip to content

Commit

Permalink
+
Browse files Browse the repository at this point in the history
  • Loading branch information
pieceowater committed Nov 24, 2024
1 parent 3567d21 commit 07a141e
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,14 @@ pg-migrate:
db-sync: pg-migration pg-migrate

# gRPC code generation
grpc-gen: grpc-clean
grpc-gen:
@echo "Generating gRPC code from proto files..."
mkdir -p $(PROTOC_OUT_DIR)
$(PROTOC) \
find $(PROTOC_PKG_PATH)/$(PROTOC_DIR) -name "*.proto" | xargs $(PROTOC) \
-I $(PROTOC_PKG_PATH)/$(PROTOC_DIR) \
--go_out=$(PROTOC_OUT_DIR) \
--go-grpc_out=$(PROTOC_OUT_DIR) \
$(PROTOC_PKG_PATH)/$(PROTOC_DIR)/*/*/*.proto
--go-grpc_out=$(PROTOC_OUT_DIR)
@echo "gRPC code generation completed!"

# Clean gRPC generated files
grpc-clean:
Expand Down

0 comments on commit 07a141e

Please sign in to comment.