diff options
author | Luka Perkov <luka@openwrt.org> | 2013-09-27 12:49:34 +0000 |
---|---|---|
committer | Luka Perkov <luka@openwrt.org> | 2013-09-27 12:49:34 +0000 |
commit | a6f15f7321f046d2b1737c2312712db685ebc150 (patch) | |
tree | 8aa202c4ec14ec8a410401def8683e0f924d6948 /tools/Makefile | |
parent | dc3d2f715b044eeb60b85a68153acd2350c0d54a (diff) | |
download | mtk-20170518-a6f15f7321f046d2b1737c2312712db685ebc150.zip mtk-20170518-a6f15f7321f046d2b1737c2312712db685ebc150.tar.gz mtk-20170518-a6f15f7321f046d2b1737c2312712db685ebc150.tar.bz2 |
patch: other tools might depend on this one
Signed-off-by: Markus Stenberg <markus.stenberg@iki.fi>
SVN-Revision: 38236
Diffstat (limited to 'tools/Makefile')
-rw-r--r-- | tools/Makefile | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/Makefile b/tools/Makefile index 6b846f8..b167a60 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) |