|
From: Oleg V. <ol...@fl...> - 2006-10-23 09:23:40
|
`make -d help | grep Makefile` shows patterns, where make tries to rebuild included and top makefiles. Do not let make to do so, by canceling implicit rules on this files. This must apply for all kinds of top makefiles's targets: *config, *build. Signed-off-by: Oleg Verych <ol...@fl...> --- This one was submitted in hope, that it can be small and useful for .19. Anyway it's here for overall picture and possible resend. Makefile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) Index: linux-2.6.19-rc2-git7/Makefile =================================================================== --- linux-2.6.19-rc2-git7.orig/Makefile 2006-10-23 07:01:37.209544992 +0000 +++ linux-2.6.19-rc2-git7/Makefile 2006-10-23 07:01:59.114793301 +0000 @@ -276,8 +276,10 @@ export quiet Q KBUILD_VERBOSE -# We need some generic definitions -include $(srctree)/scripts/Kbuild.include +# We need some generic definitions from another makefile. +# Do not let `make' to try its implicit rules on it. +$(srctree)/scripts/Kbuild.include: ; +include $(srctree)/scripts/Kbuild.include # Make variables (CC, etc...) @@ -1499,6 +1501,9 @@ PHONY += FORCE FORCE: +# Cancel implicit rules on arch and top makefiles. +$(srctree)/Makefile Makefile: ; +$(srctree)/arch/$(ARCH)/Makefile: ; # Declare the contents of the .PHONY variable as phony. We keep that # information in a variable se we can use it in if_changed and friends. -- |