-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
38 lines (32 loc) · 670 Bytes
/
Makefile
File metadata and controls
38 lines (32 loc) · 670 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
all: update-deps build
build:
go build -mod vendor -o github-slack-bot .
.PHONY: build
debug:
go build -gcflags="all=-N -l" -mod vendor -o github-slack-bot .
.PHONY: build
update-deps:
GO111MODULE=on go mod vendor
.PHONY: update-deps
run: check-env
./github-slack-bot
.PHONY: run
clean:
rm -rf ./github-slack-bot
.PHONY: clean
check-env:
ifndef SLACK_APP_TOKEN
$(error SLACK_APP_TOKEN is undefined)
endif
ifndef SLACK_BOT_TOKEN
$(error SLACK_BOT_TOKEN is not set)
endif
ifndef GITHUB_OAUTH_TOKEN
$(error GITHUB_OAUTH_TOKEN is not set)
endif
ifndef GITHUB_ORG
$(error GITHUB_ORG is not set)
endif
ifndef GITHUB_REPO
$(error GITHUB_REPO is not set)
endif