another fix to gen_build_files / autoconf.h dependency
authorDenys Vlasenko <vda.linux@googlemail.com>
Fri, 25 Jun 2010 11:56:28 +0000 (13:56 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Fri, 25 Jun 2010 11:56:28 +0000 (13:56 +0200)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Makefile

index 590512191f19d44464cf80834b32e332f9661fba..9a82776485d00e7cb8dd8ee2bad29224c504be97 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -360,7 +360,7 @@ scripts/basic/%: scripts_basic ;
 
 # This target generates Kbuild's and Config.in's from *.c files
 PHONY += gen_build_files
-gen_build_files:
+gen_build_files: $(wildcard $(srctree)/*/*.c) $(wildcard $(srctree)/*/*/*.c)
        $(Q)$(srctree)/scripts/gen_build_files.sh $(srctree) $(objtree)
 
 # bbox: we have helpers in applets/
@@ -509,7 +509,7 @@ include $(srctree)/Makefile.flags
 # with it and forgot to run make oldconfig.
 # If kconfig.d is missing then we are probarly in a cleaned tree so
 # we execute the config step to be sure to catch updated Kconfig files
-include/autoconf.h: .kconfig.d .config | gen_build_files
+include/autoconf.h: .kconfig.d .config $(wildcard $(srctree)/*/*.c) $(wildcard $(srctree)/*/*/*.c) | gen_build_files
        $(Q)$(MAKE) -f $(srctree)/Makefile silentoldconfig
 
 else