kbuild: hide most of targets when running config or mixed targets
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Wed, 12 Sep 2018 06:43:29 +0000 (15:43 +0900)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Fri, 14 Sep 2018 12:47:04 +0000 (21:47 +0900)
When mixed/config targets are being processed, the top Makefile
does not need to parse the rest of targets.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Makefile

index 4d5c883a98e5a018b4ac301cd420a5745886d500..4b76e225fdae93b3244471cbe8f8988dd1494212 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1615,9 +1615,6 @@ namespacecheck:
 export_report:
        $(PERL) $(srctree)/scripts/export_report.pl
 
-endif #ifeq ($(config-targets),1)
-endif #ifeq ($(mixed-targets),1)
-
 PHONY += checkstack kernelrelease kernelversion image_name
 
 # UML needs a little special treatment here.  It wants to use the host
@@ -1732,6 +1729,8 @@ ifneq ($(cmd_files),)
   include $(cmd_files)
 endif
 
+endif   # ifeq ($(config-targets),1)
+endif   # ifeq ($(mixed-targets),1)
 endif  # skip-makefile
 
 PHONY += FORCE