From: Masahiro Yamada Date: Wed, 16 Jul 2014 07:12:22 +0000 (+0900) Subject: kbuild: clean up scripts/Makefile.host X-Git-Tag: cleanup-for-v3.18~20^2~6 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=663935593915ad8dc43d10f58ef5eeefc77ef8c4;p=pandora-kernel.git kbuild: clean up scripts/Makefile.host The directory creation can be more simplified by two levels. [1] Drop $(dir ...) $(dir $(f)) always returns non-empty string. So, $(if $(dir $(f)),$(dir $(f)) is equivalent to $(dir $(f)). [2] Unroll $(foreach ...) loop $(dir ...) can take one or more arguments and returns a list of directories of them. $(foreach f, $(progs), $(dir $(f))) can be unrolled as $(dir $(progs)). Signed-off-by: Masahiro Yamada Signed-off-by: Michal Marek --- Reading git-diff-tree failed