./Makefile: consider PAGER for `make help'
PATCH 1/1 ./Makefile: consider PAGER for `make help'
`make help' outputs more than a screenfull of lines.
In case a user has PAGER defined in his environment, she most likely wants it to be used in such situations.
Signed-off-by Dirk Gouders <[email protected]>
--- Makefile | 7 +++++++ 1 file changed, 7 insertions(+)
Makefile +7 -0
@@ -1531,7 +1531,14 @@ board-dirs := $(dir $(wildcard $(srctree)/arch/$(SRCARCH)/configs/*/*_defconfig) board-dirs := $(sort $(notdir $(board-dirs:/=))) PHONY += help +ifdef PAGER +PHONY += _help help: + $(Q)$(MAKE) _help | $(PAGER) +_help: +else +help: +endif @echo 'Cleaning targets:' @echo ' clean - Remove most generated files but keep the config and' @echo ' enough build support to build external modules'