aboutsummaryrefslogtreecommitdiffstats
path: root/telebot/makefile
diff options
context:
space:
mode:
authorterminaldweller <thabogre@gmail.com>2021-11-12 12:03:15 +0000
committerterminaldweller <thabogre@gmail.com>2021-11-12 12:03:15 +0000
commit3c24c7ba319e277414455d68360043e155d7a3ca (patch)
tree3df683631f75eca74f77006b3d5eb3cb3e3f188c /telebot/makefile
parentchanged the module name (diff)
downloadgrpc-3c24c7ba319e277414455d68360043e155d7a3ca.tar.gz
grpc-3c24c7ba319e277414455d68360043e155d7a3ca.zip
updates and fixesv1.0.0
Diffstat (limited to 'telebot/makefile')
-rw-r--r--telebot/makefile8
1 files changed, 5 insertions, 3 deletions
diff --git a/telebot/makefile b/telebot/makefile
index af3354d..9f91c59 100644
--- a/telebot/makefile
+++ b/telebot/makefile
@@ -1,5 +1,5 @@
-DST_DIR?=./protobuf
-SRC_DIR?=./protobuf
+DST_DIR?=./protobuf/v1
+SRC_DIR?=./protobuf/v1
PROTOBUF_SRC_LIST:=$(shell find ./protobuf -name '*.proto' )
ARTIFACT_LIST:=$(patsubst %.proto, %.pb.go, $(shell find ./protobuf -name '*.proto'))
@@ -8,7 +8,9 @@ DEFAULT: default
default: $(ARTIFACT_LIST)
$(SRC_DIR)/%.pb.go:$(SRC_DIR)/%.proto
- protoc --proto_path=$(SRC_DIR) --go_out=$(DST_DIR) $<
+ protoc --proto_path=$(SRC_DIR) --go_out=$(DST_DIR) --go_opt=paths=source_relative $<
+ if [ -d go.mod ];then : else;go mod init github.com/terminaldweller/grpc/telebot/protobuf/v1;fi
+ go mod tidy
clean:
- rm $(ARTIFACT_LIST)