2019-05-11 13:02:59 -05:00
|
|
|
all:
|
|
|
|
# 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
|
|
|
#
|
|
|
|
# Then:
|
2019-05-25 04:46:11 -05:00
|
|
|
protoc --version
|
2019-05-12 13:31:57 -05:00
|
|
|
make events.pb.go
|
2019-05-24 19:38:29 -05:00
|
|
|
make config.pb.go
|
2019-05-25 04:46:11 -05:00
|
|
|
make account.pb.go
|
2019-05-11 13:02:59 -05:00
|
|
|
|
2019-05-07 03:24:37 -05:00
|
|
|
events.pb.go: events.proto
|
|
|
|
protoc --go_out=. events.proto
|
|
|
|
|
2019-05-25 04:46:11 -05:00
|
|
|
account.pb.go: account.proto
|
|
|
|
protoc --go_out=. account.proto
|
|
|
|
|
2019-05-24 19:38:29 -05:00
|
|
|
config.pb.go: config.proto
|
|
|
|
protoc --go_out=. config.proto
|
|
|
|
|
2019-05-07 03:22:53 -05:00
|
|
|
compile:
|
|
|
|
protoc --go_out=. *.proto
|
|
|
|
|
|
|
|
deps:
|
|
|
|
apt install golang-goprotobuf-dev
|
|
|
|
apt install protobuf-compiler
|
|
|
|
|
|
|
|
push:
|
|
|
|
git pull
|
|
|
|
git add --all
|
|
|
|
git commit -a -s
|
2019-05-07 03:36:42 -05:00
|
|
|
git push
|