aboutsummaryrefslogtreecommitdiffstats
path: root/telebot/makefile
blob: af3354dc78bc662311a7827499d742986d9cdd3c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
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)