Skip to content

Commit

Permalink
chore: 支持少量转换protobuf文件
Browse files Browse the repository at this point in the history
  • Loading branch information
Redmomn committed Jul 17, 2024
1 parent 169bf64 commit ae4c1e4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ PROTO_DIR=client/packets/pb
PROTO_OUTPUT_PATH=client/packets
PROTO_IMPORT_PATH=client/packets

TARGET ?= default

PROTO_FILES := \
$(PROTO_DIR)/action/*.proto \
Expand Down Expand Up @@ -34,6 +35,9 @@ install-protoc-plugin: protoc-gen-golite-version
proto: install-protoc-plugin
protoc --golite_out=$(PROTO_OUTPUT_PATH) --golite_opt=paths=source_relative -I=$(PROTO_IMPORT_PATH) $(PROTO_FILES)

protoFiles:
protoc --golite_out=$(PROTO_OUTPUT_PATH) --golite_opt=paths=source_relative -I=$(PROTO_IMPORT_PATH) $(PROTO_DIR)/$(TARGET)

fmt:
go vet -stdmethods=false ./...

Expand Down

0 comments on commit ae4c1e4

Please sign in to comment.