Skip to contentSkip to conversation

kbuild: add comment about grouped target

PATCH New Masahiro Yamada 1 participant 1 message Mar 25, 2020 Kbuild

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 kbuild: add comment about grouped target

GNU Make commit 8c888d95f618 ("[SV 8297] Implement "grouped targets" for explicit rules.") added the '&:' syntax.

I think '&:' is a perfect fit here, but we cannot use it any time soon. Just add a TODO comment.

---

 Makefile | 1 +
 1 file changed, 1 insertion(+)
Makefile +1 -0
index 593d8f1bbe90..4fd51f045440 100644
@@ -674,6 +674,7 @@ $(KCONFIG_CONFIG):
 #
 # This exploits the 'multi-target pattern rule' trick.
 # The syncconfig should be executed only once to make all the targets.
+# (Note: use the grouped target '&:' when we bump to GNU Make 4.3)
 %/auto.conf %/auto.conf.cmd: $(KCONFIG_CONFIG)
 	$(Q)$(MAKE) -f $(srctree)/Makefile syncconfig
 else # !may-sync-config
Signature · 1 line
2.17.1