$(dir $(f)) always returns non-empty string. So, $(if $(dir $(f)),$(dir $(f)) is equivalent to $(dir $(f)). Signed-off-by: Masahiro Yamada <yamada.m@xxxxxxxxxxxxxxxx> --- scripts/Makefile.host | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/Makefile.host b/scripts/Makefile.host index 2632adf..e6abc2e 100644 --- a/scripts/Makefile.host +++ b/scripts/Makefile.host @@ -63,15 +63,15 @@ host-cshobjs := $(sort $(foreach m,$(host-cshlib),$($(m:.so=-objs)))) # output directory for programs/.o files # hostprogs-y := tools/build may have been specified. Retrieve directory -host-objdirs := $(foreach f,$(__hostprogs), $(if $(dir $(f)),$(dir $(f)))) +host-objdirs := $(foreach f,$(__hostprogs), $(dir $(f))) # directory of .o files from prog-objs notation host-objdirs += $(foreach f,$(host-cmulti), \ $(foreach m,$($(f)-objs), \ - $(if $(dir $(m)),$(dir $(m))))) + $(dir $(m)))) # directory of .o files from prog-cxxobjs notation host-objdirs += $(foreach f,$(host-cxxmulti), \ $(foreach m,$($(f)-cxxobjs), \ - $(if $(dir $(m)),$(dir $(m))))) + $(dir $(m)))) host-objdirs := $(strip $(sort $(filter-out ./,$(host-objdirs)))) -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-kbuild" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html