[OS-BUILD PATCH] redhat: override `make help` to include dist-help

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Jonathan Toppins <jtoppins@xxxxxxxxxx>

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 <jtoppins@xxxxxxxxxx>

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@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to kernel-leave@xxxxxxxxxxxxxxxxxxxxxxx
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@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue




[Index of Archives]     [Fedora General Discussion]     [Older Fedora Users Archive]     [Fedora Advisory Board]     [Fedora Security]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Mentors]     [Fedora Package Announce]     [Fedora Package Review]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Coolkey]     [Yum Users]     [Tux]     [Yosemite News]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [USB]     [Asterisk PBX]

  Powered by Linux