summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-10-18 20:58:15 -0500
committerJeff Carr <[email protected]>2024-10-18 20:58:15 -0500
commitbe5548cd4e24addacd8a7cfa8c61c2fad5ccbd65 (patch)
treeffd54a2583c8b548c86c68e9f779a07ceb09a486 /Makefile
first go at it
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile48
1 files changed, 48 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..292a050
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,48 @@
+all:
+ # You must use the current protoc-gen-go
+ # protoc --version 3.6++ does not mean that protoc will generate version3 .go files
+ #
+ # apt remove golang-goprotobuf-dev
+ # apt install protobuf-compiler
+ #
+ # Then:
+ # go get -u github.com/golang/protobuf/protoc-gen-go
+ # cd ~/go/src/github.com/golang/protobuf/protoc-gen-go
+ # go install
+ #
+ # Then:
+ protoc --version
+ make droplet.pb.go
+
+redomod:
+ rm -f go.*
+ GO111MODULE= go mod init
+ GO111MODULE= go mod tidy
+
+clean:
+ rm -f *.pb.go
+
+droplet.pb.go: droplet.proto
+ protoc --go_out=. droplet.proto
+
+events.pb.go: events.proto
+ protoc --go_out=. events.proto
+
+account.pb.go: account.proto
+ protoc --go_out=. account.proto
+
+config.pb.go: config.proto
+ protoc --go_out=. config.proto
+
+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
+ git push