diff options
author | luka <luka@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2013-09-27 12:49:34 +0000 |
---|---|---|
committer | luka <luka@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2013-09-27 12:49:34 +0000 |
commit | b00a19b05c6490d923906b8ca9ba693af39a43d6 (patch) | |
tree | 8444253f21ffc6c288da2c56e15f056da628faef /tools | |
parent | f1a7260216e306fcc59b7a9fd50f54232ee7748c (diff) |
[tools] patch: other tools might depend on this one
Signed-off-by: Markus Stenberg <markus.stenberg@iki.fi>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38236 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'tools')
-rw-r--r-- | tools/Makefile | 4 |
1 files changed, 4 insertions, 0 deletions
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) |