diff options
author | terminaldweller <thabogre@gmail.com> | 2021-07-22 02:31:43 +0000 |
---|---|---|
committer | terminaldweller <thabogre@gmail.com> | 2021-07-22 02:31:43 +0000 |
commit | 018d77f1c44e0d08025ce5240b1ed5c3c2887b0d (patch) | |
tree | 96e89a8a37962adbef8608208a88d8238dabf6d0 /makefile | |
parent | added graceful shutdown.fixed the -help crashing problem. wasnt setting the c... (diff) | |
download | hived-018d77f1c44e0d08025ce5240b1ed5c3c2887b0d.tar.gz hived-018d77f1c44e0d08025ce5240b1ed5c3c2887b0d.zip |
want to switch to grpc for the telegram bot. obviously take the telegram bot out of hived. added a robots.txt hadnler
Diffstat (limited to '')
-rw-r--r-- | makefile | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/makefile b/makefile new file mode 100644 index 0000000..af3354d --- /dev/null +++ b/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) |