From 7e4f490482014fa52d15902b5aa20952461c64f4 Mon Sep 17 00:00:00 2001 From: 6543 <6543@obermui.de> Date: Sun, 5 Jan 2020 18:40:02 +0100 Subject: [PATCH] [Docs] introduce "make help" (#9604) * introduce "make help" * fix + add more routienes * Update Makefile * add make vet Co-authored-by: techknowlogick --- Makefile | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/Makefile b/Makefile index 146abf5d08..8da85c7a81 100644 --- a/Makefile +++ b/Makefile @@ -92,6 +92,25 @@ all: build include docker/Makefile +.PHONY: help +help: + @echo "Make Routines:" + @echo " - \"\" equivalent to \"build\"" + @echo " - build creates the entire project" + @echo " - clean delete integration files and build files but not css and js files" + @echo " - clean-all delete all generated files (integration test, build, css and js files)" + @echo " - css rebuild only css files" + @echo " - js rebuild only js files" + @echo " - generate run \"make css js\" and \"go generate\"" + @echo " - fmt format the code" + @echo " - generate-swagger generate the swagger spec from code comments" + @echo " - swagger-validate check if the swagger spec is valide" + @echo " - revive run code linter revive" + @echo " - misspell check if a word is written wrong" + @echo " - vet examines Go source code and reports suspicious constructs" + @echo " - test run unit test" + @echo " - test-sqlite run integration test for sqlite" + .PHONY: go-check go-check: $(eval GO_VERSION := $(shell printf "%03d%03d%03d" $(shell go version | grep -Eo '[0-9]+\.?[0-9]+?\.?[0-9]?\s' | tr '.' ' ');))