|
|
|
@ -1,30 +1,36 @@
|
|
|
|
|
################################################################################
|
|
|
|
|
|
|
|
|
|
# This Makefile generated by GoMakeGen 1.3.2 using next command:
|
|
|
|
|
# gomakegen .
|
|
|
|
|
# This Makefile generated by GoMakeGen 1.5.1 using next command:
|
|
|
|
|
# gomakegen --mod .
|
|
|
|
|
#
|
|
|
|
|
# More info: https://kaos.sh/gomakegen
|
|
|
|
|
|
|
|
|
|
################################################################################
|
|
|
|
|
|
|
|
|
|
export GO111MODULE=on
|
|
|
|
|
|
|
|
|
|
.DEFAULT_GOAL := help
|
|
|
|
|
.PHONY = fmt vet git-config deps deps-test test help
|
|
|
|
|
.PHONY = fmt vet deps deps-test test mod-init mod-update mod-vendor 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/golang/freetype
|
|
|
|
|
go get -d -v golang.org/x/image/font
|
|
|
|
|
deps: mod-update ## Download dependencies
|
|
|
|
|
|
|
|
|
|
deps-test: git-config ## Download dependencies for tests
|
|
|
|
|
go get -d -v pkg.re/essentialkaos/check.v1
|
|
|
|
|
deps-test: deps ## Download dependencies for tests
|
|
|
|
|
|
|
|
|
|
test: ## Run tests
|
|
|
|
|
go test -covermode=count .
|
|
|
|
|
|
|
|
|
|
mod-init: ## Initialize new module
|
|
|
|
|
go mod init
|
|
|
|
|
go mod tidy
|
|
|
|
|
|
|
|
|
|
mod-update: ## Download modules to local cache
|
|
|
|
|
go mod download
|
|
|
|
|
|
|
|
|
|
mod-vendor: ## Make vendored copy of dependencies
|
|
|
|
|
go mod vendor
|
|
|
|
|
|
|
|
|
|
fmt: ## Format source code with gofmt
|
|
|
|
|
find . -name "*.go" -exec gofmt -s -w {} \;
|
|
|
|
|
|
|
|
|
@ -36,6 +42,6 @@ help: ## Show this info
|
|
|
|
|
@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.3.2\033[0m\n'
|
|
|
|
|
@echo -e '\033[90mGenerated by GoMakeGen 1.5.1\033[0m\n'
|
|
|
|
|
|
|
|
|
|
################################################################################
|
|
|
|
|