kbuild: consistently decide when to rebuild a target

Consistently decide when to rebuild a target across all of
if_changed, if_changed_dep, if_changed_rule.
PHONY targets are now treated alike (ignored) for all targets

While add it make Kbuild.include almost readable by factoring out a few
bits to some common variables and reuse this in Makefile.build.

Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
This commit is contained in:
Sam Ravnborg
2006-07-23 19:37:44 +02:00
committed by Sam Ravnborg
parent d3660a8cbd
commit 48f1f0589d
3 changed files with 35 additions and 24 deletions

View File

@@ -3,6 +3,8 @@
#
klibcdirs:;
PHONY += klibcdirs
# Generate builtin.o based on initramfs_data.o
obj-y := initramfs_data.o