diff options
author | Sam Ravnborg <sam@mars.ravnborg.org> | 2005-09-10 15:02:11 -0400 |
---|---|---|
committer | Sam Ravnborg <sam@mars.ravnborg.org> | 2005-09-10 15:02:11 -0400 |
commit | 0a504f259c90fb41d3495d490fc9dbe2530c8749 (patch) | |
tree | 6a91712d73aed504a249b5106f373c623170c26d /scripts/Kbuild.include | |
parent | caba0233bc85ec311159a35f138d957d05cf2fe8 (diff) |
kbuild: add objectify
Use foo := $(call objectify, $(foo)) to prefix $(foo) with $(obj)/ unless
$(foo) is an absolute path.
For now no in-tree users - soon to come.
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Diffstat (limited to 'scripts/Kbuild.include')
-rw-r--r-- | scripts/Kbuild.include | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/Kbuild.include b/scripts/Kbuild.include index 9087273abf9..db3c708e546 100644 --- a/scripts/Kbuild.include +++ b/scripts/Kbuild.include | |||
@@ -49,6 +49,9 @@ build := -f $(if $(KBUILD_SRC),$(srctree)/)scripts/Makefile.build obj | |||
49 | cmd = @$(if $($(quiet)cmd_$(1)),\ | 49 | cmd = @$(if $($(quiet)cmd_$(1)),\ |
50 | echo ' $(subst ','\'',$($(quiet)cmd_$(1)))' &&) $(cmd_$(1)) | 50 | echo ' $(subst ','\'',$($(quiet)cmd_$(1)))' &&) $(cmd_$(1)) |
51 | 51 | ||
52 | # Add $(obj)/ for paths that is not absolute | ||
53 | objectify = $(foreach o,$(1),$(if $(filter /%,$(o)),$(o),$(obj)/$(o))) | ||
54 | |||
52 | ### | 55 | ### |
53 | # if_changed - execute command if any prerequisite is newer than | 56 | # if_changed - execute command if any prerequisite is newer than |
54 | # target, or command line has changed | 57 | # target, or command line has changed |