|
|
@ -1,30 +1,36 @@
|
|
|
|
################################################################################
|
|
|
|
################################################################################
|
|
|
|
|
|
|
|
|
|
|
|
# This Makefile generated by GoMakeGen 1.3.2 using next command:
|
|
|
|
# This Makefile generated by GoMakeGen 1.5.1 using next command:
|
|
|
|
# gomakegen .
|
|
|
|
# gomakegen --mod .
|
|
|
|
#
|
|
|
|
#
|
|
|
|
# More info: https://kaos.sh/gomakegen
|
|
|
|
# More info: https://kaos.sh/gomakegen
|
|
|
|
|
|
|
|
|
|
|
|
################################################################################
|
|
|
|
################################################################################
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export GO111MODULE=on
|
|
|
|
|
|
|
|
|
|
|
|
.DEFAULT_GOAL := help
|
|
|
|
.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
|
|
|
|
deps: mod-update ## Download dependencies
|
|
|
|
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-test: git-config ## Download dependencies for tests
|
|
|
|
deps-test: deps ## Download dependencies for tests
|
|
|
|
go get -d -v pkg.re/essentialkaos/check.v1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
test: ## Run tests
|
|
|
|
test: ## Run tests
|
|
|
|
go test -covermode=count .
|
|
|
|
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
|
|
|
|
fmt: ## Format source code with gofmt
|
|
|
|
find . -name "*.go" -exec gofmt -s -w {} \;
|
|
|
|
find . -name "*.go" -exec gofmt -s -w {} \;
|
|
|
|
|
|
|
|
|
|
|
@ -36,6 +42,6 @@ help: ## Show this info
|
|
|
|
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) \
|
|
|
|
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) \
|
|
|
|
| awk 'BEGIN {FS = ":.*?## "}; {printf " \033[33m%-12s\033[0m %s\n", $$1, $$2}'
|
|
|
|
| awk 'BEGIN {FS = ":.*?## "}; {printf " \033[33m%-12s\033[0m %s\n", $$1, $$2}'
|
|
|
|
@echo -e ''
|
|
|
|
@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'
|
|
|
|
|
|
|
|
|
|
|
|
################################################################################
|
|
|
|
################################################################################
|
|
|
|