-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
37 lines (29 loc) · 927 Bytes
/
Makefile
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
############
# Building #
############
build-plugins: ## Builds all plugins for all defined platforms
goreleaser build --rm-dist --snapshot
.PHONY: build-plugins
build-plugins-single: ## Builds all plugins only for current GOOS and GOARCH.
goreleaser build --rm-dist --single-target --snapshot
.PHONY: build-plugins-single
##############
# Generating #
##############
gen-plugin-index: ## Generate plugins YAML index file.
go run github.com/kubeshop/botkube/hack -binaries-path "./dist" -use-archive=false
.PHONY: gen-plugin-index
###############
# Developing #
###############
fix-lint-issues: ## Automatically fix lint issues
go mod tidy
go mod verify
golangci-lint run --fix "./..."
.PHONY: fix-lint-issues
#############
# Others #
#############
help: ## Show this help
@egrep -h '\s##\s' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}'
.PHONY: help