summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
author6543 <6543@obermui.de>2020-01-05 18:40:02 +0100
committertechknowlogick <techknowlogick@gitea.io>2020-01-05 12:40:02 -0500
commit7e4f490482014fa52d15902b5aa20952461c64f4 (patch)
tree5b9541cf2f68325f5f816c665eeb03e7eb63c5e7 /Makefile
parent444c3a11846ec8f78321d6f211338b64c0df632f (diff)
downloadgitea-7e4f490482014fa52d15902b5aa20952461c64f4.tar.gz
gitea-7e4f490482014fa52d15902b5aa20952461c64f4.zip
[Docs] introduce "make help" (#9604)
* introduce "make help" * fix + add more routienes * Update Makefile * add make vet Co-authored-by: techknowlogick <matti@mdranta.net>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile19
1 files changed, 19 insertions, 0 deletions
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 '.' ' ');))