aboutsummaryrefslogtreecommitdiffstats
path: root/telebot/makefile
diff options
context:
space:
mode:
authorterminaldweller <thabogre@gmail.com>2021-11-12 10:56:12 +0000
committerterminaldweller <thabogre@gmail.com>2021-11-12 10:56:12 +0000
commitb75c53fa2ab99ccb368e1802ba32fae4b1f2b524 (patch)
treea643ce91f9ce7f9ff0e29d4e3df85d4f01a25286 /telebot/makefile
parentInitial commit (diff)
downloadgrpc-b75c53fa2ab99ccb368e1802ba32fae4b1f2b524.tar.gz
grpc-b75c53fa2ab99ccb368e1802ba32fae4b1f2b524.zip
protobuf for telebot
Diffstat (limited to 'telebot/makefile')
-rw-r--r--telebot/makefile14
1 files changed, 14 insertions, 0 deletions
diff --git a/telebot/makefile b/telebot/makefile
new file mode 100644
index 0000000..af3354d
--- /dev/null
+++ b/telebot/makefile
@@ -0,0 +1,14 @@
+DST_DIR?=./protobuf
+SRC_DIR?=./protobuf
+PROTOBUF_SRC_LIST:=$(shell find ./protobuf -name '*.proto' )
+ARTIFACT_LIST:=$(patsubst %.proto, %.pb.go, $(shell find ./protobuf -name '*.proto'))
+
+DEFAULT: default
+
+default: $(ARTIFACT_LIST)
+
+$(SRC_DIR)/%.pb.go:$(SRC_DIR)/%.proto
+ protoc --proto_path=$(SRC_DIR) --go_out=$(DST_DIR) $<
+
+clean:
+ - rm $(ARTIFACT_LIST)