kbuild: version.h should depend on .kernelrelease
authorJan Beulich <jbeulich@novell.com>
Wed, 22 Feb 2006 12:29:04 +0000 (13:29 +0100)
committerSam Ravnborg <sam@mars.ravnborg.org>
Wed, 22 Feb 2006 20:29:27 +0000 (21:29 +0100)
Rebuilding a previously built tree while using make's -j options from time to
time results in the version.h check running at the same time as the updating
of .kernelrelease, resulting in UTS_RELEASE remaining an empty string (and as
a side effect causing the entire kernel to be rebuilt).

Signed-Off-By: Jan Beulich <jbeulich@novell.com>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Makefile

index 7a95f4f8ef144559be32c4a7f7e89f7cbb9371f0..ce2bfbdeb96c8b1f3e7538fa257eed09eaddc151 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -852,7 +852,7 @@ define filechk_version.h
        )
 endef
 
-include/linux/version.h: $(srctree)/Makefile .config FORCE
+include/linux/version.h: $(srctree)/Makefile .config .kernelrelease FORCE
        $(call filechk,version.h)
 
 # ---------------------------------------------------------------------------