From 0a0e6d18ec6d23ff19a8c3d210d1587c0a129bcb Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Wed, 16 Aug 2017 06:19:32 -0700 Subject: [PATCH] tools: make help-SECTION --- Makefile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index f3064d4ab..214357707 100644 --- a/Makefile +++ b/Makefile @@ -41,13 +41,18 @@ # def-help* functions for documenting make rules. See the file for usage. include help-system.mk + + $(call def-help-heading,Main make rules in the hledger project:) $(call def-help-heading,TODO: some of these need updating) $(call def-help-heading,---------------------------------------) $(call def-help-heading, ) -help2: \ - $(call def-help,[help], list documented rules in this makefile. "make RULE -n" shows more detail. ) +# just to include "make help" in help: +help2: $(call def-help,[help], list documented rules in this makefile. "make RULE -n" shows more detail. ) + +help-%: $(call def-help,[help-SECTION], list documented rules in one section of this makefile. ) + make help 2>&1 | sed -n '/$*/,/: $$/p' ############################################################################### # VARS