diff options
author | Oleg Verych <olecom@flower.upol.cz> | 2006-12-10 05:18:40 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.osdl.org> | 2006-12-10 12:55:39 -0500 |
commit | 15964864c051b31df7d2f9101fe8cc47854a0ab8 (patch) | |
tree | 6b1bd3b46dd279c2162827f1f610a272efe01628 | |
parent | bf4735a46a6b8dfc1a951f05683e80374d8baa70 (diff) |
[PATCH] kbuild: fix-rR-is-now-default
`make -d help | grep Makefile` shows patterns, where make tries to rebuild
included and top makefiles.
While `make -rR is now default' commit should fix this, actually, it was just
a little janitorial.
This fix is aimed to complete cancelling implicit rules.
Cc: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: Oleg Verych <olecom@flower.upol.cz>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-rw-r--r-- | Makefile | 17 |
1 files changed, 9 insertions, 8 deletions
@@ -10,8 +10,11 @@ NAME=Avast! A bilge rat! | |||
10 | # Comments in this file are targeted only to the developer, do not | 10 | # Comments in this file are targeted only to the developer, do not |
11 | # expect to learn how to build the kernel reading this file. | 11 | # expect to learn how to build the kernel reading this file. |
12 | 12 | ||
13 | # Do not print "Entering directory ..." | 13 | # Do not: |
14 | MAKEFLAGS += --no-print-directory | 14 | # o use make's built-in rules and variables |
15 | # (this increases performance and avoid hard-to-debug behavour); | ||
16 | # o print "Entering directory ..."; | ||
17 | MAKEFLAGS += -rR --no-print-directory | ||
15 | 18 | ||
16 | # We are using a recursive build, so we need to do a little thinking | 19 | # We are using a recursive build, so we need to do a little thinking |
17 | # to get the ordering right. | 20 | # to get the ordering right. |
@@ -271,12 +274,8 @@ export quiet Q KBUILD_VERBOSE | |||
271 | # Look for make include files relative to root of kernel src | 274 | # Look for make include files relative to root of kernel src |
272 | MAKEFLAGS += --include-dir=$(srctree) | 275 | MAKEFLAGS += --include-dir=$(srctree) |
273 | 276 | ||
274 | # We need some generic definitions | 277 | # We need some generic definitions. |
275 | include $(srctree)/scripts/Kbuild.include | 278 | include $(srctree)/scripts/Kbuild.include |
276 | |||
277 | # Do not use make's built-in rules and variables | ||
278 | # This increases performance and avoid hard-to-debug behavour | ||
279 | MAKEFLAGS += -rR | ||
280 | 279 | ||
281 | # Make variables (CC, etc...) | 280 | # Make variables (CC, etc...) |
282 | 281 | ||
@@ -1484,6 +1483,8 @@ endif # skip-makefile | |||
1484 | PHONY += FORCE | 1483 | PHONY += FORCE |
1485 | FORCE: | 1484 | FORCE: |
1486 | 1485 | ||
1486 | # Cancel implicit rules on top Makefile, `-rR' will apply to sub-makes. | ||
1487 | Makefile: ; | ||
1487 | 1488 | ||
1488 | # Declare the contents of the .PHONY variable as phony. We keep that | 1489 | # Declare the contents of the .PHONY variable as phony. We keep that |
1489 | # information in a variable se we can use it in if_changed and friends. | 1490 | # information in a variable se we can use it in if_changed and friends. |