mirror of
https://github.com/simonmichael/hledger.git
synced 2024-12-25 19:31:44 +03:00
tools: make help-*: just grep make rules, case insensitively
This commit is contained in:
parent
f30b1533a0
commit
f80f463439
6
Makefile
6
Makefile
@ -48,11 +48,11 @@ $(call def-help-heading, )
|
||||
|
||||
add-to-help-1: $(call def-help,[help], list documented rules in this makefile )
|
||||
|
||||
help-%: $(call def-help,help-SECTION, list documented rules in the given section )
|
||||
make help 2>&1 | sed -n '/$*/,/: $$/p'
|
||||
help-%: $(call def-help,help-SECTION, list documented rules containing some string )
|
||||
make help 2>&1 | grep -i $*
|
||||
|
||||
%-help: $(call def-help,SECTION-help, same but easier to type (can append "-help" to any "make RULE") )
|
||||
@make help 2>&1 | sed -n '/$*/,/: $$/p'
|
||||
@make help 2>&1 | grep -i $*
|
||||
|
||||
add-to-help-2: $(call def-help,RULE -n, show what RULE would do )
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user