From b75c53fa2ab99ccb368e1802ba32fae4b1f2b524 Mon Sep 17 00:00:00 2001 From: terminaldweller Date: Fri, 12 Nov 2021 14:26:12 +0330 Subject: protobuf for telebot --- telebot/makefile | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 telebot/makefile (limited to 'telebot/makefile') 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) -- cgit v1.2.3