pkg.re/essentialkaos/ek.v8@v12.41.0+incompatible/Makefile (about) 1 ################################################################################ 2 3 export EK_TEST_PORT=8080 4 5 ################################################################################ 6 7 .DEFAULT_GOAL := help 8 .PHONY = git-config test fmt deps deps-test clean help 9 10 ################################################################################ 11 12 git-config: ## Configure git redirects for stable import path services 13 git config --global http.https://pkg.re.followRedirects true 14 15 deps: git-config ## Download dependencies 16 go get -v pkg.re/essentialkaos/go-linenoise.v3 17 go get -v golang.org/x/crypto/bcrypt 18 19 deps-test: git-config ## Download dependencies for tests 20 go get -v github.com/axw/gocov/gocov 21 go get -v golang.org/x/sys/unix 22 go get -v pkg.re/essentialkaos/check.v1 23 24 test: ## Run tests 25 go test -covermode=count -tags=unit ./... 26 27 gen-fuzz: ## Generate go-fuzz archives for all packages 28 bash .scripts/fuzz-gen.sh ${PACKAGE} 29 30 fmt: ## Format source code with gofmt 31 find . -name "*.go" -exec gofmt -s -w {} \; 32 33 vet: ## Runs go vet over sources 34 go vet -composites=false -printfuncs=LPrintf,TLPrintf,TPrintf,log.Debug,log.Info,log.Warn,log.Error,log.Critical,log.Print ./... 35 36 clean: ## Remove all generated data 37 rm -f *.zip 38 39 help: ## Show this info 40 @echo -e '\nSupported targets:\n' 41 @grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) \ 42 | awk 'BEGIN {FS = ":.*?## "}; {printf " \033[33m%-12s\033[0m %s\n", $$1, $$2}' 43 @echo -e ''