From: Luka Perkov Date: Fri, 27 Sep 2013 12:49:34 +0000 (+0000) Subject: patch: other tools might depend on this one X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=a6f15f7321f046d2b1737c2312712db685ebc150;p=openwrt%2Fsvn-archive%2Fopenwrt.git patch: other tools might depend on this one Signed-off-by: Markus Stenberg SVN-Revision: 38236 --- diff --git a/tools/Makefile b/tools/Makefile index 6b846f8ef1..b167a60544 100644 --- a/tools/Makefile +++ b/tools/Makefile @@ -74,6 +74,10 @@ $(foreach tool, $(tools-y), $(eval $(curdir)/$(tool)/compile += $(curdir)/ccache tools-y += ccache endif +# in case there is no patch tool on the host we need to make patch tool a +# dependency for tools which have patches directory +$(foreach tool, $(tools-y), $(if $(wildcard $(curdir)/$(tool)/patches),$(eval $(curdir)/$(tool)/compile += $(curdir)/patch/install))) + $(curdir)/builddirs := $(tools-y) $(tools-dep) $(tools-) $(curdir)/builddirs-default := $(tools-y)