summaryrefslogtreecommitdiff
path: root/protobuf/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'protobuf/Makefile')
-rw-r--r--protobuf/Makefile22
1 files changed, 22 insertions, 0 deletions
diff --git a/protobuf/Makefile b/protobuf/Makefile
new file mode 100644
index 0000000..35a9d9c
--- /dev/null
+++ b/protobuf/Makefile
@@ -0,0 +1,22 @@
+all:
+ protoc --version
+ make dnsmessage.pb.go
+
+clean:
+ rm -f *.pb.go
+
+dnsmessage.pb.go: dnsmessage.proto
+ protoc --go_out=. dnsmessage.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