2024-01-17 16:47:33 -06:00
|
|
|
all: compile
|
2019-05-11 13:02:59 -05:00
|
|
|
# You must use the current protoc-gen-go
|
2019-05-25 04:46:11 -05:00
|
|
|
# protoc --version 3.6++ does not mean that protoc will generate version3 .go files
|
2019-05-11 13:02:59 -05:00
|
|
|
#
|
|
|
|
# apt remove golang-goprotobuf-dev
|
2019-05-12 13:31:57 -05:00
|
|
|
# apt install protobuf-compiler
|
2019-05-11 13:02:59 -05:00
|
|
|
#
|
|
|
|
# Then:
|
|
|
|
# go get -u github.com/golang/protobuf/protoc-gen-go
|
|
|
|
# cd ~/go/src/github.com/golang/protobuf/protoc-gen-go
|
|
|
|
# go install
|
2019-05-11 13:39:01 -05:00
|
|
|
#
|
2019-05-25 04:46:11 -05:00
|
|
|
protoc --version
|
2019-05-11 13:02:59 -05:00
|
|
|
|
2023-12-19 17:45:07 -06:00
|
|
|
clean:
|
|
|
|
rm -f *.pb.go
|
|
|
|
|
2019-05-07 03:22:53 -05:00
|
|
|
compile:
|
2024-01-17 17:43:54 -06:00
|
|
|
protoc --go_out=guipb/ *.proto
|
2019-05-07 03:22:53 -05:00
|
|
|
|
|
|
|
deps:
|
|
|
|
apt install golang-goprotobuf-dev
|
|
|
|
apt install protobuf-compiler
|
|
|
|
|
2024-01-17 17:43:54 -06:00
|
|
|
#config.pb.go: config.proto
|
|
|
|
# protoc --go_out=. config.proto
|
|
|
|
|
2019-05-07 03:22:53 -05:00
|
|
|
push:
|
|
|
|
git pull
|
|
|
|
git add --all
|
|
|
|
git commit -a -s
|
2019-05-07 03:36:42 -05:00
|
|
|
git push
|