forked from essentialkaos/go-confluence
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
37 lines (26 loc) · 1.21 KB
/
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
################################################################################
# This Makefile generated by GoMakeGen 1.1.2 using next command:
# gomakegen .
#
# More info: https://kaos.sh/gomakegen
################################################################################
.DEFAULT_GOAL := help
.PHONY = fmt git-config deps deps-test test help
################################################################################
git-config: ## Configure git redirects for stable import path services
git config --global http.https://pkg.re.followRedirects true
deps: git-config ## Download dependencies
go get -d -v github.com/valyala/fasthttp
deps-test: git-config ## Download dependencies for tests
go get -d -v pkg.re/check.v1
test: ## Run tests
go test -covermode=count .
fmt: ## Format source code with gofmt
find . -name "*.go" -exec gofmt -s -w {} \;
help: ## Show this info
@echo -e '\n\033[1mSupported targets:\033[0m\n'
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) \
| awk 'BEGIN {FS = ":.*?## "}; {printf " \033[33m%-12s\033[0m %s\n", $$1, $$2}'
@echo -e ''
@echo -e '\033[90mGenerated by GoMakeGen 1.1.2\033[0m\n'
################################################################################