]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
share/mk/: help-list-targets: Use 'make -n'
authorAlejandro Colomar <alx@kernel.org>
Thu, 4 Dec 2025 14:03:27 +0000 (15:03 +0100)
committerAlejandro Colomar <alx@kernel.org>
Thu, 4 Dec 2025 14:41:47 +0000 (15:41 +0100)
This makes the command more portable to arbitrary makefiles,
as one can run any target without fear of running any commands.

Signed-off-by: Alejandro Colomar <alx@kernel.org>
share/mk/help/list.mk

index 7443d12885f63df909d4acd5161b51210f3e0576..2439b6e58d62da33cebae8302d1fd573f526ecff 100644 (file)
@@ -16,7 +16,7 @@ include $(MAKEFILEDIR)/configure/build-depends/sed/sed.mk
 
 .PHONY: help-list-targets
 help-list-targets:
-       $(MAKE) -p nothing \
+       $(MAKE) -p -n nothing \
        | $(GREP) '^\.PHONY:' \
        | $(TR) ' ' '\n' \
        | $(GREP) -v '^\.PHONY:' \