Prechádzať zdrojové kódy

patch: other tools might depend on this one

Signed-off-by: Markus Stenberg <[email protected]>

SVN-Revision: 38236
Luka Perkov 12 rokov pred
rodič
commit
a6f15f7321
1 zmenil súbory, kde vykonal 4 pridanie a 0 odobranie
  1. 4 0
      tools/Makefile

+ 4 - 0
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)