From 03609f73db4d0ef00eeaf30c617b0abe554f22ed Mon Sep 17 00:00:00 2001 From: Timofey Titovets Date: Thu, 29 Dec 2016 13:40:13 +0300 Subject: [PATCH] Add help section to Makefile Signed-off-by: Timofey Titovets --- Makefile | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 4ef4b81..ff399bd 100644 --- a/Makefile +++ b/Makefile @@ -2,17 +2,19 @@ PREFIX ?= / default all: lib src test README.html -clean: +clean: ## Cleanup git clean -dfx .PHONY: lib src -lib: +lib: ## Build libs $(MAKE) -C lib +src: ## Build bins src: lib $(MAKE) -C src +test: ## Run tests test: lib src $(MAKE) -C test @@ -20,11 +22,15 @@ README.html: README.md markdown README.md > README.html.new mv -f README.html.new README.html +install: ## Install bees + libs install: lib src test install -Dm644 lib/libcrucible.so $(PREFIX)/usr/lib/libcrucible.so install -Dm755 bin/bees $(PREFIX)/usr/bin/bees -install_scripts: +install_scripts: ## Install scipts install -Dm755 scripts/beesd $(PREFIX)/usr/bin/beesd install -Dm644 scripts/beesd.conf.sample $(PREFIX)/etc/bees/beesd.conf.sample install -Dm644 scripts/beesd@.service $(PREFIX)/usr/lib/systemd/system/beesd@.service + +help: ## Show help + @fgrep -h "##" $(MAKEFILE_LIST) | fgrep -v fgrep | sed -e 's/\\$$//' | sed -e 's/##/\t/'