From: Jonathan Toppins <jtopp...@redhat.com>

redhat: override `make help` to include dist-help

Override the upstream kernel `make help` target so we can inject
distribution targets at the top of the help output.

Signed-off-by: Jonathan Toppins <jtopp...@redhat.com>

diff --git a/makefile b/makefile
index blahblah..blahblah 100644
--- a/makefile
+++ b/makefile
@@ -1,16 +1,24 @@
-ifeq ($(filter dist-% distg-%,$(MAKECMDGOALS)),)
+ifeq ($(filter help dist-% distg-%,$(MAKECMDGOALS)),)
        include Makefile
 endif
 
+MAKEFLAGS += --no-print-directory
 _OUTPUT := "."
 # this section is needed in order to make O= to work
 ifeq ("$(origin O)", "command line")
   _OUTPUT := "$(abspath $(O))"
   _EXTRA_ARGS := O=$(_OUTPUT)
 endif
+help::
+       @echo "## Distribution Targets"
+       @$(MAKE) -C redhat dist-help
+       @echo ""
+       @echo "## Kernel Targets"
+       @$(MAKE) -f Makefile $(@)
+
 dist-%::
-       $(MAKE) -C redhat $(@) $(_EXTRA_ARGS)
+       @$(MAKE) -C redhat $(@) $(_EXTRA_ARGS)
 
 distg-%::
-       $(MAKE) -C redhat $(@) $(_EXTRA_ARGS)
+       @$(MAKE) -C redhat $(@) $(_EXTRA_ARGS)
 

--
https://gitlab.com/cki-project/kernel-ark/-/merge_requests/2144
_______________________________________________
kernel mailing list -- kernel@lists.fedoraproject.org
To unsubscribe send an email to kernel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/kernel@lists.fedoraproject.org
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to