build system: fix include/NUM_APPLETS.h generation
authorDenys Vlasenko <vda.linux@googlemail.com>
Sun, 14 Aug 2016 00:54:27 +0000 (02:54 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Sun, 14 Aug 2016 00:54:27 +0000 (02:54 +0200)
TBH, it's more like "work around my bad makefile-fu" than "fix"...

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
applets/Kbuild.src

index b61239948983cc5c9bb3e6c9a8b78421bb9524ed..5cc1827eae69200578b3b119cdb5d1e0b399ed3e 100644 (file)
@@ -29,7 +29,7 @@ applets/applets.o: include/usage_compressed.h include/applet_tables.h
 
 applets/applet_tables: .config include/applets.h
 applets/usage:         .config include/applets.h
-applets/usage_pod:     .config include/applet_tables.h include/applets.h
+applets/usage_pod:     .config include/applets.h include/applet_tables.h include/NUM_APPLETS.h
 
 quiet_cmd_gen_usage_compressed = GEN     include/usage_compressed.h
       cmd_gen_usage_compressed = $(srctree_slash)applets/usage_compressed include/usage_compressed.h applets
@@ -40,8 +40,5 @@ include/usage_compressed.h: applets/usage $(srctree_slash)applets/usage_compress
 quiet_cmd_gen_applet_tables = GEN     include/applet_tables.h
       cmd_gen_applet_tables = applets/applet_tables include/applet_tables.h include/NUM_APPLETS.h
 
-include/applet_tables.h: applets/applet_tables
-       $(call cmd,gen_applet_tables)
-
-include/NUM_APPLETS.h: applets/applet_tables
+include/applet_tables.h include/NUM_APPLETS.h: applets/applet_tables
        $(call cmd,gen_applet_tables)