From 82e21b07b599ee86e027af3f3c6b26d0b02c3219 Mon Sep 17 00:00:00 2001 From: Vincenzo Palazzo Date: Sat, 29 Jul 2023 14:14:12 +0200 Subject: [PATCH] meta: add help message for make file Signed-off-by: Vincenzo Palazzo --- Makefile | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/Makefile b/Makefile index 123815c8..a98da11e 100644 --- a/Makefile +++ b/Makefile @@ -13,23 +13,24 @@ doc-deps: fmt: $(CC) fmt --all -check: +check: ## Runs unit testing $(CC) test $(ARGS) -example: - @echo "No example for the moment" - -clean: +clean: ## Clean up everythings $(CC) clean -book: +book: ## Build the release version of documentation cd docs/docs-book; mdbook build -dev-book: +dev-book: ## Build the docs in dev mode cd docs/docs-book; mdbook serve --open -install: +install: ## Install coffee inside the local machine $(CC) install --locked --path ./coffee_cmd -integration: default +integration: default ## Runs integration testing $(CC) test -j 4 -p tests $(ARGS) + +help: ## Show Help + @grep --no-filename -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | \ + awk 'BEGIN {FS = ":.*?## "}; {printf "\033[32m%-15s\033[0m %s\n", $$1, $$2}'