From fbc361bcd7f7541a69c4237bdba5e63c0a97b02f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=B3kai=20P=C3=A9ter?= Date: Thu, 30 Nov 2017 21:42:11 +0100 Subject: [PATCH] feat(build): help target to list all targets (#870) --- Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index eb005358..9407581b 100644 --- a/Makefile +++ b/Makefile @@ -6,6 +6,10 @@ GENERATOR ?= $(shell for c in ninja make; do command -vp $$c; done | xargs basen all: configure build link +help: + @echo "Available targets:" + @awk -F':' '/^\w*:/ {print " "$$1;}' Makefile + configure: @echo "\033[32;1m**\033[0m Configuring..." @mkdir -p $(BUILDDIR) @@ -30,6 +34,6 @@ clean: @if [ -L polybar ]; then rm -v polybar; fi @if [ -L polybar-msg ]; then rm -v polybar-msg; fi -.PHONY: configure build link clean +.PHONY: configure build link clean help # vim:ts=2 sw=2 noet nolist