aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorLukas Rusak <lorusak@gmail.com>2022-12-29 19:27:42 -0800
committerfuzzard <fuzzard@kodi.tv>2023-03-11 11:26:13 +1000
commitfce7880abee25089fdaf8272c05b286d949e6fd2 (patch)
treefad92634a90d45d65c8a91d8727a6af0116dc2ef /tools
parentcfad925044a9424182e0e3f388cc595abc66ed07 (diff)
tools/depends: make the hash file an order only prerequisite
this fixes an issue when rebuilding the dependencies that if a target is already built it doesn't get rebuilt ref: https://www.gnu.org/software/make/manual/html_node/Prerequisite-Types.html
Diffstat (limited to 'tools')
-rw-r--r--tools/depends/native/Mako/Makefile2
-rw-r--r--tools/depends/native/MarkupSafe/Makefile2
-rw-r--r--tools/depends/native/autoconf-archive/Makefile2
-rw-r--r--tools/depends/native/autoconf/Makefile2
-rw-r--r--tools/depends/native/automake/Makefile2
-rw-r--r--tools/depends/native/cmake/Makefile2
-rw-r--r--tools/depends/native/dpkg/Makefile2
-rw-r--r--tools/depends/native/expat/Makefile2
-rw-r--r--tools/depends/native/flatbuffers/Makefile2
-rw-r--r--tools/depends/native/gettext/Makefile2
-rw-r--r--tools/depends/native/giflib/Makefile2
-rw-r--r--tools/depends/native/heimdal/Makefile2
-rw-r--r--tools/depends/native/ldid/Makefile2
-rw-r--r--tools/depends/native/libffi/Makefile2
-rw-r--r--tools/depends/native/libjpeg-turbo/Makefile2
-rw-r--r--tools/depends/native/liblzo2/Makefile2
-rw-r--r--tools/depends/native/libpng/Makefile2
-rw-r--r--tools/depends/native/libtool/Makefile2
-rw-r--r--tools/depends/native/m4/Makefile2
-rw-r--r--tools/depends/native/meson/Makefile2
-rw-r--r--tools/depends/native/nasm/Makefile2
-rw-r--r--tools/depends/native/ninja/Makefile2
-rw-r--r--tools/depends/native/openssl/Makefile2
-rw-r--r--tools/depends/native/pcre/Makefile2
-rw-r--r--tools/depends/native/perlmodule-parseyapp/Makefile2
-rw-r--r--tools/depends/native/pkg-config/Makefile2
-rw-r--r--tools/depends/native/pugixml/Makefile2
-rw-r--r--tools/depends/native/python3/Makefile2
-rw-r--r--tools/depends/native/swig/Makefile2
-rw-r--r--tools/depends/native/tar/Makefile2
-rw-r--r--tools/depends/native/wayland-scanner/Makefile2
-rw-r--r--tools/depends/native/waylandpp-scanner/Makefile2
-rw-r--r--tools/depends/native/xz/Makefile2
-rw-r--r--tools/depends/native/zlib/Makefile2
-rw-r--r--tools/depends/target/alsa-lib/Makefile2
-rw-r--r--tools/depends/target/boblight/Makefile2
-rw-r--r--tools/depends/target/bzip2/Makefile2
-rw-r--r--tools/depends/target/crossguid/Makefile2
-rw-r--r--tools/depends/target/curl/Makefile2
-rw-r--r--tools/depends/target/dav1d/Makefile2
-rw-r--r--tools/depends/target/dbus/Makefile2
-rw-r--r--tools/depends/target/expat/Makefile2
-rw-r--r--tools/depends/target/ffmpeg/Makefile2
-rw-r--r--tools/depends/target/flatbuffers/Makefile2
-rw-r--r--tools/depends/target/fmt/Makefile2
-rw-r--r--tools/depends/target/fontconfig/Makefile2
-rw-r--r--tools/depends/target/freetype2-noharfbuzz/Makefile2
-rw-r--r--tools/depends/target/freetype2/Makefile2
-rw-r--r--tools/depends/target/fribidi/Makefile2
-rw-r--r--tools/depends/target/fstrcmp/Makefile2
-rw-r--r--tools/depends/target/gettext/Makefile2
-rw-r--r--tools/depends/target/gnutls/Makefile2
-rw-r--r--tools/depends/target/gtest/Makefile2
-rw-r--r--tools/depends/target/harfbuzz/Makefile2
-rw-r--r--tools/depends/target/libandroidjni/Makefile2
-rw-r--r--tools/depends/target/libass/Makefile2
-rw-r--r--tools/depends/target/libbluray/Makefile2
-rw-r--r--tools/depends/target/libcdio-gplv3/Makefile2
-rw-r--r--tools/depends/target/libcdio/Makefile2
-rw-r--r--tools/depends/target/libcec/Makefile2
-rw-r--r--tools/depends/target/libdrm/Makefile2
-rw-r--r--tools/depends/target/libdvdcss/Makefile2
-rw-r--r--tools/depends/target/libdvdnav/Makefile2
-rw-r--r--tools/depends/target/libdvdread/Makefile2
-rw-r--r--tools/depends/target/libevdev/Makefile2
-rw-r--r--tools/depends/target/libffi/Makefile2
-rw-r--r--tools/depends/target/libgcrypt/Makefile2
-rw-r--r--tools/depends/target/libgpg-error/Makefile2
-rw-r--r--tools/depends/target/libiconv/Makefile2
-rw-r--r--tools/depends/target/libinput/Makefile2
-rw-r--r--tools/depends/target/libjpeg-turbo/Makefile2
-rw-r--r--tools/depends/target/liblzo2/Makefile2
-rw-r--r--tools/depends/target/libmicrohttpd/Makefile2
-rw-r--r--tools/depends/target/libnfs/Makefile2
-rw-r--r--tools/depends/target/libplist/Makefile2
-rw-r--r--tools/depends/target/libpng/Makefile2
-rw-r--r--tools/depends/target/libsdl/Makefile2
-rw-r--r--tools/depends/target/libshairplay/Makefile2
-rw-r--r--tools/depends/target/libudev/Makefile2
-rw-r--r--tools/depends/target/libusb/Makefile2
-rw-r--r--tools/depends/target/libuuid/Makefile2
-rw-r--r--tools/depends/target/libva/Makefile2
-rw-r--r--tools/depends/target/libxkbcommon/Makefile2
-rw-r--r--tools/depends/target/libxml2/Makefile2
-rw-r--r--tools/depends/target/libxslt/Makefile2
-rw-r--r--tools/depends/target/libzip/Makefile2
-rw-r--r--tools/depends/target/mariadb/Makefile2
-rw-r--r--tools/depends/target/mesa/Makefile2
-rw-r--r--tools/depends/target/mtdev/Makefile2
-rw-r--r--tools/depends/target/nettle/Makefile2
-rw-r--r--tools/depends/target/nghttp2/Makefile2
-rw-r--r--tools/depends/target/openssl/Makefile2
-rw-r--r--tools/depends/target/p8-platform/Makefile2
-rw-r--r--tools/depends/target/pcre/Makefile2
-rw-r--r--tools/depends/target/python3/Makefile2
-rw-r--r--tools/depends/target/pythonmodule-pil/Makefile2
-rw-r--r--tools/depends/target/pythonmodule-pycryptodome/Makefile2
-rw-r--r--tools/depends/target/pythonmodule-setuptools/Makefile2
-rw-r--r--tools/depends/target/rapidjson/Makefile2
-rw-r--r--tools/depends/target/samba-gplv3/Makefile2
-rw-r--r--tools/depends/target/samba/Makefile2
-rw-r--r--tools/depends/target/spdlog/Makefile2
-rw-r--r--tools/depends/target/sqlite3/Makefile2
-rw-r--r--tools/depends/target/taglib/Makefile2
-rw-r--r--tools/depends/target/tinyxml/Makefile2
-rw-r--r--tools/depends/target/udfread/Makefile2
-rw-r--r--tools/depends/target/wayland-protocols/Makefile2
-rw-r--r--tools/depends/target/wayland/Makefile2
-rw-r--r--tools/depends/target/waylandpp/Makefile2
-rw-r--r--tools/depends/target/xz/Makefile2
-rw-r--r--tools/depends/target/zlib/Makefile2
111 files changed, 111 insertions, 111 deletions
diff --git a/tools/depends/native/Mako/Makefile b/tools/depends/native/Mako/Makefile
index b5af97c879..c31e462db4 100644
--- a/tools/depends/native/Mako/Makefile
+++ b/tools/depends/native/Mako/Makefile
@@ -12,7 +12,7 @@ include ../../download-files.include
all: .installed-$(PLATFORM)
-$(PLATFORM): $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE) $(DEPS)
+$(PLATFORM): $(DEPS) | $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE)
-rm -rf $(PLATFORM)/*; mkdir -p $(PLATFORM)
cd $(PLATFORM); $(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(TARBALLS_LOCATION)/$(ARCHIVE)
diff --git a/tools/depends/native/MarkupSafe/Makefile b/tools/depends/native/MarkupSafe/Makefile
index b09fb6b7ec..fa4372735e 100644
--- a/tools/depends/native/MarkupSafe/Makefile
+++ b/tools/depends/native/MarkupSafe/Makefile
@@ -12,7 +12,7 @@ include ../../download-files.include
all: .installed-$(PLATFORM)
-$(PLATFORM): $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE) $(DEPS)
+$(PLATFORM): $(DEPS) | $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE)
-rm -rf $(PLATFORM)/*; mkdir -p $(PLATFORM)
cd $(PLATFORM); $(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(TARBALLS_LOCATION)/$(ARCHIVE)
diff --git a/tools/depends/native/autoconf-archive/Makefile b/tools/depends/native/autoconf-archive/Makefile
index fb91e19c81..c1e599daff 100644
--- a/tools/depends/native/autoconf-archive/Makefile
+++ b/tools/depends/native/autoconf-archive/Makefile
@@ -19,7 +19,7 @@ LIBDYLIB=$(PLATFORM)/bin/autoconf
all: .installed-$(PLATFORM)
-$(PLATFORM): $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE) $(DEPS)
+$(PLATFORM): $(DEPS) | $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE)
-rm -rf $(PLATFORM)/*; mkdir -p $(PLATFORM)
cd $(PLATFORM); $(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(TARBALLS_LOCATION)/$(ARCHIVE)
diff --git a/tools/depends/native/autoconf/Makefile b/tools/depends/native/autoconf/Makefile
index b7efed2479..d0f08d869b 100644
--- a/tools/depends/native/autoconf/Makefile
+++ b/tools/depends/native/autoconf/Makefile
@@ -19,7 +19,7 @@ LIBDYLIB=$(PLATFORM)/bin/autoconf
all: .installed-$(PLATFORM)
-$(PLATFORM): $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE) $(DEPS)
+$(PLATFORM): $(DEPS) | $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE)
-rm -rf $(PLATFORM)/*; mkdir -p $(PLATFORM)
cd $(PLATFORM); $(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(TARBALLS_LOCATION)/$(ARCHIVE)
diff --git a/tools/depends/native/automake/Makefile b/tools/depends/native/automake/Makefile
index 9e73e52b88..5e33556c17 100644
--- a/tools/depends/native/automake/Makefile
+++ b/tools/depends/native/automake/Makefile
@@ -18,7 +18,7 @@ LIBDYLIB=$(PLATFORM)/bin/automake
all: .installed-$(PLATFORM)
-$(PLATFORM): $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE) $(DEPS)
+$(PLATFORM): $(DEPS) | $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE)
-rm -rf $(PLATFORM)/*; mkdir -p $(PLATFORM)
cd $(PLATFORM); $(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(TARBALLS_LOCATION)/$(ARCHIVE)
cd $(PLATFORM); patch -p1 -i ../01-fix-help2man-error.patch
diff --git a/tools/depends/native/cmake/Makefile b/tools/depends/native/cmake/Makefile
index 11e8e339f3..1a4dc3ef4d 100644
--- a/tools/depends/native/cmake/Makefile
+++ b/tools/depends/native/cmake/Makefile
@@ -28,7 +28,7 @@ APP=$(PLATFORM)/bin/$(APPNAME)
all: .installed-$(PLATFORM)
-$(PLATFORM): $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE) $(DEPS)
+$(PLATFORM): $(DEPS) | $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE)
-rm -rf $(PLATFORM)/*; mkdir -p $(PLATFORM)
cd $(PLATFORM); $(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(TARBALLS_LOCATION)/$(ARCHIVE)
cd $(PLATFORM); $(SETENV) $(CONFIGURE)
diff --git a/tools/depends/native/dpkg/Makefile b/tools/depends/native/dpkg/Makefile
index 533bf61bc9..08b94ca2f9 100644
--- a/tools/depends/native/dpkg/Makefile
+++ b/tools/depends/native/dpkg/Makefile
@@ -21,7 +21,7 @@ LIBDYLIB=$(PLATFORM)/dpkg-deb/dpkg-deb
all: .installed-$(PLATFORM)
-$(PLATFORM): $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE) $(DEPS)
+$(PLATFORM): $(DEPS) | $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE)
rm -rf $(PLATFORM)/*; mkdir -p $(PLATFORM)
cd $(PLATFORM); $(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(TARBALLS_LOCATION)/$(ARCHIVE)
cd $(PLATFORM); patch -p1 -i ../01-no-gnu-patch.patch
diff --git a/tools/depends/native/expat/Makefile b/tools/depends/native/expat/Makefile
index 08c1b6f96c..0a0b48469a 100644
--- a/tools/depends/native/expat/Makefile
+++ b/tools/depends/native/expat/Makefile
@@ -11,7 +11,7 @@ LIBDYLIB=$(PLATFORM)/lib/.libs/lib$(LIBNAME).a
all: .installed-$(PLATFORM)
-$(PLATFORM): $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE) $(DEPS)
+$(PLATFORM): $(DEPS) | $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE)
rm -rf $(PLATFORM)/*; mkdir -p $(PLATFORM)
cd $(PLATFORM); $(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(TARBALLS_LOCATION)/$(ARCHIVE)
cd $(PLATFORM); $(CONFIGURE)
diff --git a/tools/depends/native/flatbuffers/Makefile b/tools/depends/native/flatbuffers/Makefile
index fa5fe50042..6911d4c786 100644
--- a/tools/depends/native/flatbuffers/Makefile
+++ b/tools/depends/native/flatbuffers/Makefile
@@ -47,7 +47,7 @@ BUILDDIR = $(PLATFORM)/build-cmake # 'build' conflicts with file BUILD on case-i
all: .installed-$(PLATFORM)
-$(PLATFORM): $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE) $(DEPS)
+$(PLATFORM): $(DEPS) | $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE)
rm -rf $(PLATFORM)/*; mkdir -p $(PLATFORM)
cd $(PLATFORM); $(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(TARBALLS_LOCATION)/$(ARCHIVE)
mkdir -p $(BUILDDIR)
diff --git a/tools/depends/native/gettext/Makefile b/tools/depends/native/gettext/Makefile
index 97b717f5f5..5a8fee1220 100644
--- a/tools/depends/native/gettext/Makefile
+++ b/tools/depends/native/gettext/Makefile
@@ -27,7 +27,7 @@ LIBDYLIB=$(PLATFORM)/gettext-tools/src/.libs/libgettextsrc.a
all: .installed-$(PLATFORM)
-$(PLATFORM): $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE) $(DEPS)
+$(PLATFORM): $(DEPS) | $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE)
rm -rf $(PLATFORM)/*; mkdir -p $(PLATFORM)
cd $(PLATFORM); $(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(TARBALLS_LOCATION)/$(ARCHIVE)
cd $(PLATFORM); sed -ie '/gets is a security hole/d' gettext-tools/gnulib-lib/stdio.in.h
diff --git a/tools/depends/native/giflib/Makefile b/tools/depends/native/giflib/Makefile
index b2a8b991a9..a5df8374cb 100644
--- a/tools/depends/native/giflib/Makefile
+++ b/tools/depends/native/giflib/Makefile
@@ -19,7 +19,7 @@ LIBDYLIB=$(PLATFORM)/libgif.a
all: .installed-$(PLATFORM)
-$(PLATFORM): $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE) $(DEPS)
+$(PLATFORM): $(DEPS) | $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE)
-rm -rf $(PLATFORM); mkdir -p $(PLATFORM)
cd $(PLATFORM); $(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(TARBALLS_LOCATION)/$(ARCHIVE)
cd $(PLATFORM); patch -p1 -i ../01-static-lib.patch
diff --git a/tools/depends/native/heimdal/Makefile b/tools/depends/native/heimdal/Makefile
index 340af63df3..29d2a79d20 100644
--- a/tools/depends/native/heimdal/Makefile
+++ b/tools/depends/native/heimdal/Makefile
@@ -16,7 +16,7 @@ APP=$(PLATFORM)/lib/asn1/asn1_compile
all: .installed-$(PLATFORM)
-$(PLATFORM): $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE) $(DEPS)
+$(PLATFORM): $(DEPS) | $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE)
rm -rf $(PLATFORM); mkdir -p $(PLATFORM)
cd $(PLATFORM); $(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(TARBALLS_LOCATION)/$(ARCHIVE)
cd $(PLATFORM); patch -p1 -i ../01-disable-libedit.patch
diff --git a/tools/depends/native/ldid/Makefile b/tools/depends/native/ldid/Makefile
index 7c426aa0a6..04a209d62f 100644
--- a/tools/depends/native/ldid/Makefile
+++ b/tools/depends/native/ldid/Makefile
@@ -17,7 +17,7 @@ LIBDYLIB=$(PLATFORM)/ldid
all: .installed-$(PLATFORM)
-$(PLATFORM): $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE) $(DEPS)
+$(PLATFORM): $(DEPS) | $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE)
rm -rf $(PLATFORM)/*; mkdir -p $(PLATFORM)
cd $(PLATFORM); $(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(TARBALLS_LOCATION)/$(ARCHIVE)
cd $(PLATFORM); patch -p1 -i ../01-disable-openssl-plist.patch
diff --git a/tools/depends/native/libffi/Makefile b/tools/depends/native/libffi/Makefile
index 6193511efa..499dfda281 100644
--- a/tools/depends/native/libffi/Makefile
+++ b/tools/depends/native/libffi/Makefile
@@ -20,7 +20,7 @@ LIBDYLIB=$(PLATFORM)/.libs/$(LIBNAME).a
all: .installed-$(PLATFORM)
-$(PLATFORM): $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE) $(DEPS)
+$(PLATFORM): $(DEPS) | $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE)
rm -rf $(PLATFORM); mkdir -p $(PLATFORM)
cd $(PLATFORM); $(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(TARBALLS_LOCATION)/$(ARCHIVE)
cd $(PLATFORM); $(CONFIGURE)
diff --git a/tools/depends/native/libjpeg-turbo/Makefile b/tools/depends/native/libjpeg-turbo/Makefile
index 26a1323168..990c2baca4 100644
--- a/tools/depends/native/libjpeg-turbo/Makefile
+++ b/tools/depends/native/libjpeg-turbo/Makefile
@@ -17,7 +17,7 @@ LIBDYLIB=$(PLATFORM)/build/libjpeg.a
all: .installed-$(PLATFORM)
-$(PLATFORM): $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE) $(DEPS)
+$(PLATFORM): $(DEPS) | $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE)
rm -rf $(PLATFORM)/*; mkdir -p $(PLATFORM)
cd $(PLATFORM); $(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(TARBALLS_LOCATION)/$(ARCHIVE)
cd $(PLATFORM); patch -p1 -i ../01-disable-executables.patch
diff --git a/tools/depends/native/liblzo2/Makefile b/tools/depends/native/liblzo2/Makefile
index 93fd85e080..e6ca6e4f6c 100644
--- a/tools/depends/native/liblzo2/Makefile
+++ b/tools/depends/native/liblzo2/Makefile
@@ -20,7 +20,7 @@ LIBDYLIB=$(PLATFORM)/src/.libs/lib$(LIBNAME)2.a
all: .installed-$(PLATFORM)
-$(PLATFORM): $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE) $(DEPS)
+$(PLATFORM): $(DEPS) | $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE)
rm -rf $(PLATFORM)/*; mkdir -p $(PLATFORM)
cd $(PLATFORM); $(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(TARBALLS_LOCATION)/$(ARCHIVE)
cd $(PLATFORM); $(CONFIGURE)
diff --git a/tools/depends/native/libpng/Makefile b/tools/depends/native/libpng/Makefile
index 84650832b3..6059b6980a 100644
--- a/tools/depends/native/libpng/Makefile
+++ b/tools/depends/native/libpng/Makefile
@@ -20,7 +20,7 @@ LIBDYLIB=$(PLATFORM)/.libs/$(LIBNAME)16.a
all: .installed-$(PLATFORM)
-$(PLATFORM): $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE) $(DEPS)
+$(PLATFORM): $(DEPS) | $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE)
rm -rf $(PLATFORM)/*; mkdir -p $(PLATFORM)
cd $(PLATFORM); $(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(TARBALLS_LOCATION)/$(ARCHIVE)
cd $(PLATFORM); $(CONFIGURE)
diff --git a/tools/depends/native/libtool/Makefile b/tools/depends/native/libtool/Makefile
index 235642c7e1..ebbfdaffa2 100644
--- a/tools/depends/native/libtool/Makefile
+++ b/tools/depends/native/libtool/Makefile
@@ -20,7 +20,7 @@ LIBDYLIB=$(PLATFORM)/libtool
all: .installed-$(PLATFORM)
-$(PLATFORM): $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE) $(DEPS)
+$(PLATFORM): $(DEPS) | $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE)
-rm -rf $(PLATFORM)/*; mkdir -p $(PLATFORM)
cd $(PLATFORM); $(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(TARBALLS_LOCATION)/$(ARCHIVE)
cd $(PLATFORM); $(CONFIGURE)
diff --git a/tools/depends/native/m4/Makefile b/tools/depends/native/m4/Makefile
index a41959146f..016f098752 100644
--- a/tools/depends/native/m4/Makefile
+++ b/tools/depends/native/m4/Makefile
@@ -18,7 +18,7 @@ LIBDYLIB=$(PLATFORM)/src/$(LIBNAME)
all: .installed-$(PLATFORM)
-$(PLATFORM): $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE) $(DEPS)
+$(PLATFORM): $(DEPS) | $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE)
-rm -rf $(PLATFORM)/*; mkdir -p $(PLATFORM)
cd $(PLATFORM); $(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(TARBALLS_LOCATION)/$(ARCHIVE)
cd $(PLATFORM); $(CONFIGURE)
diff --git a/tools/depends/native/meson/Makefile b/tools/depends/native/meson/Makefile
index 106b1a0b92..553d4a3f8f 100644
--- a/tools/depends/native/meson/Makefile
+++ b/tools/depends/native/meson/Makefile
@@ -15,7 +15,7 @@ LIBDYLIB=$(PLATFORM)/build
all: .installed-$(PLATFORM)
-$(PLATFORM): $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE) $(DEPS)
+$(PLATFORM): $(DEPS) | $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE)
rm -rf $(PLATFORM)/*; mkdir -p $(PLATFORM)
cd $(PLATFORM); $(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(TARBALLS_LOCATION)/$(ARCHIVE)
cd $(PLATFORM); $(NATIVEPREFIX)/bin/python3 setup.py config
diff --git a/tools/depends/native/nasm/Makefile b/tools/depends/native/nasm/Makefile
index 5746439fa3..c3b77e35a3 100644
--- a/tools/depends/native/nasm/Makefile
+++ b/tools/depends/native/nasm/Makefile
@@ -18,7 +18,7 @@ APP=$(PLATFORM)/$(APPNAME)
all: .installed-$(PLATFORM)
-$(PLATFORM): $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE) $(DEPS)
+$(PLATFORM): $(DEPS) | $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE)
rm -rf $(PLATFORM)/*; mkdir -p $(PLATFORM)
cd $(PLATFORM); $(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(TARBALLS_LOCATION)/$(ARCHIVE)
cd $(PLATFORM); $(CONFIGURE)
diff --git a/tools/depends/native/ninja/Makefile b/tools/depends/native/ninja/Makefile
index 3cf2505588..f54cf8d4ee 100644
--- a/tools/depends/native/ninja/Makefile
+++ b/tools/depends/native/ninja/Makefile
@@ -15,7 +15,7 @@ LIBDYLIB=$(PLATFORM)/ninja
all: .installed-$(PLATFORM)
-$(PLATFORM): $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE) $(DEPS)
+$(PLATFORM): $(DEPS) | $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE)
rm -rf $(PLATFORM)/*; mkdir -p $(PLATFORM)
cd $(PLATFORM); $(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(TARBALLS_LOCATION)/$(ARCHIVE)
diff --git a/tools/depends/native/openssl/Makefile b/tools/depends/native/openssl/Makefile
index 880fc7caa0..189acf0855 100644
--- a/tools/depends/native/openssl/Makefile
+++ b/tools/depends/native/openssl/Makefile
@@ -33,7 +33,7 @@ LIBDYLIB=$(PLATFORM)/libssl.a
all: .installed-$(PLATFORM)
-$(PLATFORM): $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE) $(DEPS)
+$(PLATFORM): $(DEPS) | $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE)
rm -rf $(PLATFORM); mkdir -p $(PLATFORM)
cd $(PLATFORM); $(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(TARBALLS_LOCATION)/$(ARCHIVE)
cd $(PLATFORM); $(CONFIGURE)
diff --git a/tools/depends/native/pcre/Makefile b/tools/depends/native/pcre/Makefile
index c82ad0e461..d50252f328 100644
--- a/tools/depends/native/pcre/Makefile
+++ b/tools/depends/native/pcre/Makefile
@@ -23,7 +23,7 @@ LIBDYLIB=$(PLATFORM)/.libs/lib$(LIBNAME).so
all: .installed-$(PLATFORM)
-$(PLATFORM): $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE) $(DEPS)
+$(PLATFORM): $(DEPS) | $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE)
rm -rf $(PLATFORM)/*; mkdir -p $(PLATFORM)
cd $(PLATFORM); $(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(TARBALLS_LOCATION)/$(ARCHIVE)
cd $(PLATFORM); $(CONFIGURE)
diff --git a/tools/depends/native/perlmodule-parseyapp/Makefile b/tools/depends/native/perlmodule-parseyapp/Makefile
index 7708581804..85dec65b1b 100644
--- a/tools/depends/native/perlmodule-parseyapp/Makefile
+++ b/tools/depends/native/perlmodule-parseyapp/Makefile
@@ -23,7 +23,7 @@ LIBDYLIB=$(PLATFORM)/bin/autoconf
all: .installed-$(PLATFORM)
-$(PLATFORM): $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE) $(DEPS)
+$(PLATFORM): $(DEPS) | $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE)
-rm -rf $(PLATFORM)/*; mkdir -p $(PLATFORM)
cd $(PLATFORM); $(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(TARBALLS_LOCATION)/$(ARCHIVE)
diff --git a/tools/depends/native/pkg-config/Makefile b/tools/depends/native/pkg-config/Makefile
index 1ceee70aaf..1ba81b7a30 100644
--- a/tools/depends/native/pkg-config/Makefile
+++ b/tools/depends/native/pkg-config/Makefile
@@ -24,7 +24,7 @@ LIBDYLIB=$(PLATFORM)/pkg-config
all: .installed-$(PLATFORM)
-$(PLATFORM): $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE) $(DEPS)
+$(PLATFORM): $(DEPS) | $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE)
-rm -rf $(PLATFORM)/*; mkdir -p $(PLATFORM)
cd $(PLATFORM); $(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(TARBALLS_LOCATION)/$(ARCHIVE)
cd $(PLATFORM); $(CONFIGURE)
diff --git a/tools/depends/native/pugixml/Makefile b/tools/depends/native/pugixml/Makefile
index 26b0ff1d99..03ef707eaa 100644
--- a/tools/depends/native/pugixml/Makefile
+++ b/tools/depends/native/pugixml/Makefile
@@ -22,7 +22,7 @@ BUILDDIR = $(PLATFORM)/build
all: .installed-$(PLATFORM)
-$(PLATFORM): $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE) $(DEPS)
+$(PLATFORM): $(DEPS) | $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE)
rm -rf $(PLATFORM)/*; mkdir -p $(PLATFORM)
cd $(PLATFORM); $(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(TARBALLS_LOCATION)/$(ARCHIVE)
mkdir -p $(BUILDDIR)
diff --git a/tools/depends/native/python3/Makefile b/tools/depends/native/python3/Makefile
index 672f778c3d..74ebe061a0 100644
--- a/tools/depends/native/python3/Makefile
+++ b/tools/depends/native/python3/Makefile
@@ -23,7 +23,7 @@ endif
all: .installed-$(PLATFORM)
-$(PLATFORM): $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE) $(DEPS)
+$(PLATFORM): $(DEPS) | $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE)
rm -rf $(PLATFORM)/*; mkdir -p $(PLATFORM)
cd $(PLATFORM); $(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(TARBALLS_LOCATION)/$(ARCHIVE)
cd $(PLATFORM); $(CONFIGURE)
diff --git a/tools/depends/native/swig/Makefile b/tools/depends/native/swig/Makefile
index edae65ef3a..045cbcc626 100644
--- a/tools/depends/native/swig/Makefile
+++ b/tools/depends/native/swig/Makefile
@@ -20,7 +20,7 @@ LIBDYLIB=$(PLATFORM)/swig
all: .installed-$(PLATFORM)
-$(PLATFORM): $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE) $(DEPS)
+$(PLATFORM): $(DEPS) | $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE)
rm -rf $(PLATFORM)/*; mkdir -p $(PLATFORM)
cd $(PLATFORM); $(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(TARBALLS_LOCATION)/$(ARCHIVE)
cd $(PLATFORM); $(CONFIGURE)
diff --git a/tools/depends/native/tar/Makefile b/tools/depends/native/tar/Makefile
index 2283577b75..a3624ff331 100644
--- a/tools/depends/native/tar/Makefile
+++ b/tools/depends/native/tar/Makefile
@@ -23,7 +23,7 @@ APPBIN=$(PREFIX)/bin/tar
all: .installed-$(PLATFORM)
-$(PLATFORM): $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE) $(DEPS)
+$(PLATFORM): $(DEPS) | $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE)
-rm -rf $(PLATFORM)/*; mkdir -p $(PLATFORM)
cd $(PLATFORM); $(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(TARBALLS_LOCATION)/$(ARCHIVE)
cd $(PLATFORM); $(AUTORECONF)
diff --git a/tools/depends/native/wayland-scanner/Makefile b/tools/depends/native/wayland-scanner/Makefile
index eb3581b976..ea46e21278 100644
--- a/tools/depends/native/wayland-scanner/Makefile
+++ b/tools/depends/native/wayland-scanner/Makefile
@@ -19,7 +19,7 @@ APP=$(PLATFORM)/wayland-scanner
all: .installed-$(PLATFORM)
-$(PLATFORM): $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE) $(DEPS)
+$(PLATFORM): $(DEPS) | $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE)
rm -rf $(PLATFORM)/*; mkdir -p $(PLATFORM)
cd $(PLATFORM); $(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(TARBALLS_LOCATION)/$(ARCHIVE)
cd $(PLATFORM); $(CONFIGURE)
diff --git a/tools/depends/native/waylandpp-scanner/Makefile b/tools/depends/native/waylandpp-scanner/Makefile
index bf36073d6d..571412e323 100644
--- a/tools/depends/native/waylandpp-scanner/Makefile
+++ b/tools/depends/native/waylandpp-scanner/Makefile
@@ -26,7 +26,7 @@ BUILDDIR = $(PLATFORM)/build
all: .installed-$(PLATFORM)
-$(PLATFORM): $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE) $(DEPS)
+$(PLATFORM): $(DEPS) | $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE)
rm -rf $(PLATFORM)/*; mkdir -p $(PLATFORM)
cd $(PLATFORM); $(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(TARBALLS_LOCATION)/$(ARCHIVE)
mkdir -p $(BUILDDIR)
diff --git a/tools/depends/native/xz/Makefile b/tools/depends/native/xz/Makefile
index e136ee3eaa..8986c4986f 100644
--- a/tools/depends/native/xz/Makefile
+++ b/tools/depends/native/xz/Makefile
@@ -11,7 +11,7 @@ APP=$(PLATFORM)/src/xz/xz
all: .installed-$(PLATFORM)
-$(PLATFORM): $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE) $(DEPS)
+$(PLATFORM): $(DEPS) | $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE)
-rm -rf $(PLATFORM)/*; mkdir -p $(PLATFORM)
cd $(PLATFORM); $(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(TARBALLS_LOCATION)/$(ARCHIVE)
cd $(PLATFORM); $(CONFIGURE)
diff --git a/tools/depends/native/zlib/Makefile b/tools/depends/native/zlib/Makefile
index 86404b5ebb..863ac4be40 100644
--- a/tools/depends/native/zlib/Makefile
+++ b/tools/depends/native/zlib/Makefile
@@ -18,7 +18,7 @@ LIBDYLIB=$(PLATFORM)/$(LIBNAME).a
all: .installed-$(PLATFORM)
-$(PLATFORM): $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE) $(DEPS)
+$(PLATFORM): $(DEPS) | $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE)
rm -rf $(PLATFORM); mkdir -p $(PLATFORM)
cd $(PLATFORM); $(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(TARBALLS_LOCATION)/$(ARCHIVE)
cd $(PLATFORM); patch -p1 -i ../visibility.patch
diff --git a/tools/depends/target/alsa-lib/Makefile b/tools/depends/target/alsa-lib/Makefile
index ae3afc4c18..57d17873a8 100644
--- a/tools/depends/target/alsa-lib/Makefile
+++ b/tools/depends/target/alsa-lib/Makefile
@@ -28,7 +28,7 @@ LIBDYLIB=$(PLATFORM)/src/.libs/$(LIBNAME).so
all: .installed-$(PLATFORM)
-$(PLATFORM): $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE) $(DEPS)
+$(PLATFORM): $(DEPS) | $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE)
rm -rf $(PLATFORM)/*; mkdir -p $(PLATFORM)
cd $(PLATFORM); $(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(TARBALLS_LOCATION)/$(ARCHIVE)
cd $(PLATFORM); $(CONFIGURE)
diff --git a/tools/depends/target/boblight/Makefile b/tools/depends/target/boblight/Makefile
index a766b09ef3..641061cd38 100644
--- a/tools/depends/target/boblight/Makefile
+++ b/tools/depends/target/boblight/Makefile
@@ -23,7 +23,7 @@ LIBDYLIB=$(PLATFORM)/src/.libs/$(LIBNAME).a
all: $(LIBDYLIB) .installed-$(PLATFORM)
-$(PLATFORM): $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE) $(DEPS)
+$(PLATFORM): $(DEPS) | $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE)
rm -rf $(PLATFORM)/*; mkdir -p $(PLATFORM)
cd $(PLATFORM); $(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(TARBALLS_LOCATION)/$(ARCHIVE)
cd $(PLATFORM); patch -p1 -i ../01-fix_fpermissive.patch
diff --git a/tools/depends/target/bzip2/Makefile b/tools/depends/target/bzip2/Makefile
index 38c8443d1b..c5ef21e165 100644
--- a/tools/depends/target/bzip2/Makefile
+++ b/tools/depends/target/bzip2/Makefile
@@ -17,7 +17,7 @@ LIBDYLIB=$(PLATFORM)/libbz2.a
all: .installed-$(PLATFORM)
-$(PLATFORM): $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE) $(DEPS)
+$(PLATFORM): $(DEPS) | $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE)
rm -rf $(PLATFORM)/*; mkdir -p $(PLATFORM)
cd $(PLATFORM); $(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(TARBALLS_LOCATION)/$(ARCHIVE)
cd $(PLATFORM); patch -p1 -i ../Makefile.patch
diff --git a/tools/depends/target/crossguid/Makefile b/tools/depends/target/crossguid/Makefile
index 6cdc802924..f37050dab5 100644
--- a/tools/depends/target/crossguid/Makefile
+++ b/tools/depends/target/crossguid/Makefile
@@ -35,7 +35,7 @@ include ../../download-files.include
all: .installed-$(PLATFORM)
-$(PLATFORM): $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE) $(DEPS)
+$(PLATFORM): $(DEPS) | $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE)
ifeq ($(PREFIX),)
@echo
@echo "ERROR: please set PREFIX to the kodi install path e.g. make PREFIX=/usr/local"
diff --git a/tools/depends/target/curl/Makefile b/tools/depends/target/curl/Makefile
index d98e3e791a..81c3130caf 100644
--- a/tools/depends/target/curl/Makefile
+++ b/tools/depends/target/curl/Makefile
@@ -19,7 +19,7 @@ LIBDYLIB=$(PLATFORM)/lib/.libs/lib$(LIBNAME).a
all: .installed-$(PLATFORM)
-$(PLATFORM): $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE) $(DEPS)
+$(PLATFORM): $(DEPS) | $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE)
rm -rf $(PLATFORM)/*; mkdir -p $(PLATFORM)
cd $(PLATFORM); $(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(TARBALLS_LOCATION)/$(ARCHIVE)
cd $(PLATFORM); patch -p1 -i ../01-patch-autoconf-GH-5130.patch
diff --git a/tools/depends/target/dav1d/Makefile b/tools/depends/target/dav1d/Makefile
index fb25c7891a..c801cd1155 100644
--- a/tools/depends/target/dav1d/Makefile
+++ b/tools/depends/target/dav1d/Makefile
@@ -61,7 +61,7 @@ all: .installed-$(PLATFORM)
download: $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE)
-$(PLATFORM): $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE) $(DEPS)
+$(PLATFORM): $(DEPS) | $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE)
rm -rf $(PLATFORM)/*; mkdir -p $(PLATFORM)
cd $(PLATFORM); $(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(TARBALLS_LOCATION)/$(ARCHIVE)
cd $(PLATFORM); rm -rf build; mkdir -p build
diff --git a/tools/depends/target/dbus/Makefile b/tools/depends/target/dbus/Makefile
index a159bef7ff..73d12e41cd 100644
--- a/tools/depends/target/dbus/Makefile
+++ b/tools/depends/target/dbus/Makefile
@@ -18,7 +18,7 @@ LIBDYLIB=$(PLATFORM)/$(LIBNAME)/.libs/lib$(LIBNAME)-1.so
all: $(LIBDYLIB) .installed-$(PLATFORM)
-$(PLATFORM): $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE) $(DEPS)
+$(PLATFORM): $(DEPS) | $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE)
rm -rf $(PLATFORM)/*; mkdir -p $(PLATFORM)
cd $(PLATFORM); $(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(TARBALLS_LOCATION)/$(ARCHIVE)
cd $(PLATFORM); $(CONFIGURE)
diff --git a/tools/depends/target/expat/Makefile b/tools/depends/target/expat/Makefile
index a36631b05a..501e533d72 100644
--- a/tools/depends/target/expat/Makefile
+++ b/tools/depends/target/expat/Makefile
@@ -13,7 +13,7 @@ LIBDYLIB=$(PLATFORM)/build/$(BYPRODUCT)
all: .installed-$(PLATFORM)
-$(PLATFORM): $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE) $(DEPS)
+$(PLATFORM): $(DEPS) | $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE)
rm -rf $(PLATFORM); mkdir -p $(PLATFORM)
cd $(PLATFORM); $(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(TARBALLS_LOCATION)/$(ARCHIVE)
cd $(PLATFORM); mkdir -p build
diff --git a/tools/depends/target/ffmpeg/Makefile b/tools/depends/target/ffmpeg/Makefile
index 5cdc4ffa3e..e52e9f2112 100644
--- a/tools/depends/target/ffmpeg/Makefile
+++ b/tools/depends/target/ffmpeg/Makefile
@@ -39,7 +39,7 @@ all: .installed-$(PLATFORM)
$(TARBALLS_LOCATION)/$(ARCHIVE):
cd $(TARBALLS_LOCATION); $(RETRIEVE_TOOL) -Ls --create-dirs -f -o $(TARBALLS_LOCATION)/$(ARCHIVE) $(BASE_URL)/archive/$(VERSION).tar.gz
-$(PLATFORM): $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE) $(DEPS)
+$(PLATFORM): $(DEPS) | $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE)
rm -rf $(PLATFORM); mkdir -p $(PLATFORM)
rm -rf $(PLATFORM); mkdir -p $(PLATFORM)/build
cd $(PLATFORM); $(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(TARBALLS_LOCATION)/$(ARCHIVE)
diff --git a/tools/depends/target/flatbuffers/Makefile b/tools/depends/target/flatbuffers/Makefile
index cd65e66c7f..a1b034a92c 100644
--- a/tools/depends/target/flatbuffers/Makefile
+++ b/tools/depends/target/flatbuffers/Makefile
@@ -37,7 +37,7 @@ include ../../download-files.include
all: .installed-$(PLATFORM)
-$(PLATFORM): $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE) $(DEPS)
+$(PLATFORM): $(DEPS) | $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE)
ifeq ($(PREFIX),)
@echo
@echo "ERROR: please set PREFIX to the kodi install path e.g. make PREFIX=/usr/local"
diff --git a/tools/depends/target/fmt/Makefile b/tools/depends/target/fmt/Makefile
index abff52527d..c66acb10d8 100644
--- a/tools/depends/target/fmt/Makefile
+++ b/tools/depends/target/fmt/Makefile
@@ -33,7 +33,7 @@ include ../../download-files.include
all: .installed-$(PLATFORM)
-$(PLATFORM): $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE) $(DEPS)
+$(PLATFORM): $(DEPS) | $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE)
ifeq ($(PREFIX),)
@echo
@echo "ERROR: please set PREFIX to the kodi install path e.g. make PREFIX=/usr/local"
diff --git a/tools/depends/target/fontconfig/Makefile b/tools/depends/target/fontconfig/Makefile
index 4386e54f0a..2d259939a6 100644
--- a/tools/depends/target/fontconfig/Makefile
+++ b/tools/depends/target/fontconfig/Makefile
@@ -26,7 +26,7 @@ LIBDYLIB=$(PLATFORM)/build/src/$(BYPRODUCT)
all: .installed-$(PLATFORM)
-$(PLATFORM): $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE) $(DEPS)
+$(PLATFORM): $(DEPS) | $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE)
rm -rf $(PLATFORM)/*; mkdir -p $(PLATFORM)
cd $(PLATFORM); $(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(TARBALLS_LOCATION)/$(ARCHIVE)
cd $(PLATFORM); $(CONFIGURE) . build
diff --git a/tools/depends/target/freetype2-noharfbuzz/Makefile b/tools/depends/target/freetype2-noharfbuzz/Makefile
index e4a9fec384..83c15453fe 100644
--- a/tools/depends/target/freetype2-noharfbuzz/Makefile
+++ b/tools/depends/target/freetype2-noharfbuzz/Makefile
@@ -28,7 +28,7 @@ LIBDYLIB=$(PLATFORM)/build/$(BYPRODUCT)
all: .installed-$(PLATFORM)
-$(PLATFORM): $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE) $(DEPS)
+$(PLATFORM): $(DEPS) | $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE)
rm -rf $(PLATFORM); mkdir -p $(PLATFORM)/build
cd $(PLATFORM); $(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(TARBALLS_LOCATION)/$(ARCHIVE)
ifeq ($(OS),darwin_embedded)
diff --git a/tools/depends/target/freetype2/Makefile b/tools/depends/target/freetype2/Makefile
index 886959982d..7ff4d1f658 100644
--- a/tools/depends/target/freetype2/Makefile
+++ b/tools/depends/target/freetype2/Makefile
@@ -27,7 +27,7 @@ LIBDYLIB=$(PLATFORM)/build/$(BYPRODUCT)
all: .installed-$(PLATFORM)
-$(PLATFORM): $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE) $(DEPS)
+$(PLATFORM): $(DEPS) | $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE)
rm -rf $(PLATFORM); mkdir -p $(PLATFORM)/build
cd $(PLATFORM); $(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(TARBALLS_LOCATION)/$(ARCHIVE)
ifeq ($(OS),darwin_embedded)
diff --git a/tools/depends/target/fribidi/Makefile b/tools/depends/target/fribidi/Makefile
index 2545089933..baef5dbd07 100644
--- a/tools/depends/target/fribidi/Makefile
+++ b/tools/depends/target/fribidi/Makefile
@@ -27,7 +27,7 @@ LIBDYLIB=$(PLATFORM)/build/lib/lib$(LIBNAME).a
all: .installed-$(PLATFORM)
-$(PLATFORM): $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE) $(DEPS)
+$(PLATFORM): $(DEPS) | $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE)
rm -rf $(PLATFORM)/*; mkdir -p $(PLATFORM)
cd $(PLATFORM); $(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(TARBALLS_LOCATION)/$(ARCHIVE)
cd $(PLATFORM); $(CONFIGURE) . build
diff --git a/tools/depends/target/fstrcmp/Makefile b/tools/depends/target/fstrcmp/Makefile
index a0a61e46e7..e1642b450b 100644
--- a/tools/depends/target/fstrcmp/Makefile
+++ b/tools/depends/target/fstrcmp/Makefile
@@ -8,7 +8,7 @@ LIBDYLIB=$(PLATFORM)/lib/.libs/$(BYPRODUCT)
all: .installed-$(PLATFORM)
-$(PLATFORM): $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE) $(DEPS)
+$(PLATFORM): $(DEPS) | $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE)
rm -rf $(PLATFORM)/*; mkdir -p $(PLATFORM)
cd $(PLATFORM); $(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(TARBALLS_LOCATION)/$(ARCHIVE)
cd $(PLATFORM); autoreconf -vif; $(CONFIGURE)
diff --git a/tools/depends/target/gettext/Makefile b/tools/depends/target/gettext/Makefile
index 23cf678b77..4607aff4f4 100644
--- a/tools/depends/target/gettext/Makefile
+++ b/tools/depends/target/gettext/Makefile
@@ -25,7 +25,7 @@ LIBDYLIB=$(PLATFORM)/gettext-runtime/intl/.libs/libintl.a
all: .installed-$(PLATFORM)
-$(PLATFORM): $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE) $(DEPS)
+$(PLATFORM): $(DEPS) | $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE)
rm -rf $(PLATFORM)/*; mkdir -p $(PLATFORM)
cd $(PLATFORM); $(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(TARBALLS_LOCATION)/$(ARCHIVE)
cd $(PLATFORM); $(CONFIGURE)
diff --git a/tools/depends/target/gnutls/Makefile b/tools/depends/target/gnutls/Makefile
index 30bf8e297d..3e75799b7d 100644
--- a/tools/depends/target/gnutls/Makefile
+++ b/tools/depends/target/gnutls/Makefile
@@ -20,7 +20,7 @@ LIBDYLIB=$(PLATFORM)/lib/.libs/lib$(LIBNAME).a
all: .installed-$(PLATFORM)
-$(PLATFORM): $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE) $(DEPS)
+$(PLATFORM): $(DEPS) | $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE)
rm -rf $(PLATFORM)/*; mkdir -p $(PLATFORM)
cd $(PLATFORM); $(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(TARBALLS_LOCATION)/$(ARCHIVE)
cd $(PLATFORM); patch -p1 -i ../add-dl-as-private-lib.patch
diff --git a/tools/depends/target/gtest/Makefile b/tools/depends/target/gtest/Makefile
index 0b892a1213..32a09cd6c3 100644
--- a/tools/depends/target/gtest/Makefile
+++ b/tools/depends/target/gtest/Makefile
@@ -5,7 +5,7 @@ LIBDYLIB=$(PLATFORM)/build/lib/$(BYPRODUCT)
all: .installed-$(PLATFORM)
-$(PLATFORM): $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE) $(DEPS)
+$(PLATFORM): $(DEPS) | $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE)
rm -rf $(PLATFORM)/*; mkdir -p $(PLATFORM)
cd $(PLATFORM); $(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(TARBALLS_LOCATION)/$(ARCHIVE)
cd $(PLATFORM); $(CMAKE) -B build -DBUILD_GMOCK:BOOL=OFF
diff --git a/tools/depends/target/harfbuzz/Makefile b/tools/depends/target/harfbuzz/Makefile
index 4cf4ea85ae..8538701350 100644
--- a/tools/depends/target/harfbuzz/Makefile
+++ b/tools/depends/target/harfbuzz/Makefile
@@ -42,7 +42,7 @@ LIBDYLIB=$(PLATFORM)/build/lib/lib$(LIBNAME).a
all: .installed-$(PLATFORM)
-$(PLATFORM): $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE) $(DEPS)
+$(PLATFORM): $(DEPS) | $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE)
rm -rf $(PLATFORM)/*; mkdir -p $(PLATFORM)
cd $(PLATFORM); $(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(TARBALLS_LOCATION)/$(ARCHIVE)
cd $(PLATFORM); $(CONFIGURE) . build
diff --git a/tools/depends/target/libandroidjni/Makefile b/tools/depends/target/libandroidjni/Makefile
index f97aee3c6f..438162c7cb 100644
--- a/tools/depends/target/libandroidjni/Makefile
+++ b/tools/depends/target/libandroidjni/Makefile
@@ -5,7 +5,7 @@ LIBDYLIB=$(PLATFORM)/build/$(BYPRODUCT)
all: .installed-$(PLATFORM)
-$(PLATFORM): $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE) $(DEPS)
+$(PLATFORM): $(DEPS) | $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE)
rm -rf $(PLATFORM)/*; mkdir -p $(PLATFORM)
cd $(PLATFORM); $(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(TARBALLS_LOCATION)/$(ARCHIVE)
cd $(PLATFORM); rm -rf build; mkdir -p build
diff --git a/tools/depends/target/libass/Makefile b/tools/depends/target/libass/Makefile
index 1d1a50a660..2c1ebc3252 100644
--- a/tools/depends/target/libass/Makefile
+++ b/tools/depends/target/libass/Makefile
@@ -28,7 +28,7 @@ LIBDYLIB=$(PLATFORM)/$(LIBNAME)/.libs/$(LIBNAME).a
all: .installed-$(PLATFORM)
-$(PLATFORM): $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE) $(DEPS)
+$(PLATFORM): $(DEPS) | $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE)
rm -rf $(PLATFORM)/*; mkdir -p $(PLATFORM)
cd $(PLATFORM); $(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(TARBALLS_LOCATION)/$(ARCHIVE)
cd $(PLATFORM); $(AUTORECONF) -vif
diff --git a/tools/depends/target/libbluray/Makefile b/tools/depends/target/libbluray/Makefile
index db157b0f93..25abadd73a 100644
--- a/tools/depends/target/libbluray/Makefile
+++ b/tools/depends/target/libbluray/Makefile
@@ -15,7 +15,7 @@ LIBDYLIB=$(PLATFORM)/.libs/$(BYPRODUCT)
all: .installed-$(PLATFORM)
-$(PLATFORM): $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE) $(DEPS)
+$(PLATFORM): $(DEPS) | $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE)
rm -rf $(PLATFORM); mkdir -p $(PLATFORM)
cd $(PLATFORM); $(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(TARBALLS_LOCATION)/$(ARCHIVE)
ifeq ($(OS),darwin_embedded)
diff --git a/tools/depends/target/libcdio-gplv3/Makefile b/tools/depends/target/libcdio-gplv3/Makefile
index dc4bb4cd76..5d1a8501b2 100644
--- a/tools/depends/target/libcdio-gplv3/Makefile
+++ b/tools/depends/target/libcdio-gplv3/Makefile
@@ -20,7 +20,7 @@ LIBDYLIB=$(PLATFORM)/lib/driver/.libs/$(LIBNAME).a
all: .installed-$(PLATFORM)
-$(PLATFORM): $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE) $(DEPS)
+$(PLATFORM): $(DEPS) | $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE)
rm -rf $(PLATFORM)/*; mkdir -p $(PLATFORM)
cd $(PLATFORM); $(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(TARBALLS_LOCATION)/$(ARCHIVE)
ifeq ($(TARGET_PLATFORM),macosx)
diff --git a/tools/depends/target/libcdio/Makefile b/tools/depends/target/libcdio/Makefile
index a30712b841..5b6e495e93 100644
--- a/tools/depends/target/libcdio/Makefile
+++ b/tools/depends/target/libcdio/Makefile
@@ -19,7 +19,7 @@ LIBDYLIB=$(PLATFORM)/lib/driver/.libs/$(LIBNAME).a
all: .installed-$(PLATFORM)
-$(PLATFORM): $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE) $(DEPS)
+$(PLATFORM): $(DEPS) | $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE)
rm -rf $(PLATFORM)/*; mkdir -p $(PLATFORM)
cd $(PLATFORM); $(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(TARBALLS_LOCATION)/$(ARCHIVE)
cd $(PLATFORM); patch -p1 -i ../configure.patch
diff --git a/tools/depends/target/libcec/Makefile b/tools/depends/target/libcec/Makefile
index 27dc9e3e58..884e9bf1f5 100644
--- a/tools/depends/target/libcec/Makefile
+++ b/tools/depends/target/libcec/Makefile
@@ -21,7 +21,7 @@ endif
all: .installed-$(PLATFORM)
-$(PLATFORM): $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE) $(DEPS)
+$(PLATFORM): $(DEPS) | $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE)
rm -rf $(PLATFORM); mkdir -p $(PLATFORM)/build
cd $(PLATFORM); $(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(TARBALLS_LOCATION)/$(ARCHIVE)
cd $(PLATFORM); patch -p1 -i ../remove_git_info.patch
diff --git a/tools/depends/target/libdrm/Makefile b/tools/depends/target/libdrm/Makefile
index 9ff1ff2d73..ffd9a64a2e 100644
--- a/tools/depends/target/libdrm/Makefile
+++ b/tools/depends/target/libdrm/Makefile
@@ -55,7 +55,7 @@ all: .installed-$(PLATFORM)
download: $(TARBALLS_LOCATION)/$(ARCHIVE)
-$(PLATFORM): $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE) $(DEPS)
+$(PLATFORM): $(DEPS) | $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE)
rm -rf $(PLATFORM)/*; mkdir -p $(PLATFORM)
cd $(PLATFORM); $(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(TARBALLS_LOCATION)/$(ARCHIVE)
cd $(PLATFORM); rm -rf build; mkdir -p build
diff --git a/tools/depends/target/libdvdcss/Makefile b/tools/depends/target/libdvdcss/Makefile
index b157eee34d..5be5138b27 100644
--- a/tools/depends/target/libdvdcss/Makefile
+++ b/tools/depends/target/libdvdcss/Makefile
@@ -29,7 +29,7 @@ download: $(TARBALLS_LOCATION)/$(ARCHIVE)
$(TARBALLS_LOCATION)/$(ARCHIVE):
cd $(TARBALLS_LOCATION); $(RETRIEVE_TOOL) -o $(TARBALLS_LOCATION)/$(ARCHIVE) $(BASE_URL)/archive/$(VERSION).tar.gz
-$(PLATFORM): $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE) $(DEPS)
+$(PLATFORM): $(DEPS) | $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE)
rm -rf $(PLATFORM); mkdir -p $(PLATFORM)
cd $(PLATFORM); $(ARCHIVE_TOOL) $(TARBALLS_LOCATION)/$(ARCHIVE)
cd $(PLATFORM); $(AUTORECONF) -vif && ac_cv_path_GIT= ./configure $(config)
diff --git a/tools/depends/target/libdvdnav/Makefile b/tools/depends/target/libdvdnav/Makefile
index eca4d53f54..57214c9728 100644
--- a/tools/depends/target/libdvdnav/Makefile
+++ b/tools/depends/target/libdvdnav/Makefile
@@ -40,7 +40,7 @@ download: $(TARBALLS_LOCATION)/$(ARCHIVE)
$(TARBALLS_LOCATION)/$(ARCHIVE):
cd $(TARBALLS_LOCATION); $(RETRIEVE_TOOL) -o $(TARBALLS_LOCATION)/$(ARCHIVE) $(BASE_URL)/archive/$(VERSION).tar.gz
-$(PLATFORM): $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE) $(DEPS)
+$(PLATFORM): $(DEPS) | $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE)
rm -rf $(PLATFORM); mkdir -p $(PLATFORM)
cd $(PLATFORM); $(ARCHIVE_TOOL) $(TARBALLS_LOCATION)/$(ARCHIVE)
cd $(PLATFORM); $(AUTORECONF) -vif && $(PKGCONFIGPATH) CFLAGS="$(CFLAGS) $(EXTRA_CFLAGS)" ac_cv_path_GIT= ./configure $(config)
diff --git a/tools/depends/target/libdvdread/Makefile b/tools/depends/target/libdvdread/Makefile
index 0be5f2d6f4..3231b431ee 100644
--- a/tools/depends/target/libdvdread/Makefile
+++ b/tools/depends/target/libdvdread/Makefile
@@ -39,7 +39,7 @@ download: $(TARBALLS_LOCATION)/$(ARCHIVE)
$(TARBALLS_LOCATION)/$(ARCHIVE):
cd $(TARBALLS_LOCATION); $(RETRIEVE_TOOL) -o $(TARBALLS_LOCATION)/$(ARCHIVE) $(BASE_URL)/archive/$(VERSION).tar.gz
-$(PLATFORM): $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE) $(DEPS)
+$(PLATFORM): $(DEPS) | $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE)
rm -rf $(PLATFORM); mkdir -p $(PLATFORM)
cd $(PLATFORM); $(ARCHIVE_TOOL) $(TARBALLS_LOCATION)/$(ARCHIVE)
cd $(PLATFORM); $(AUTORECONF) -vif && $(PKGCONFIGPATH) CFLAGS="$(CFLAGS) $(EXTRA_CFLAGS)" ac_cv_path_GIT= ./configure $(config)
diff --git a/tools/depends/target/libevdev/Makefile b/tools/depends/target/libevdev/Makefile
index 74ec3b96c3..8bd4bc3d91 100644
--- a/tools/depends/target/libevdev/Makefile
+++ b/tools/depends/target/libevdev/Makefile
@@ -17,7 +17,7 @@ LIBDYLIB=$(PLATFORM)/libevdev/.libs/libevdev.la
all: .installed-$(PLATFORM)
-$(PLATFORM): $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE) $(DEPS)
+$(PLATFORM): $(DEPS) | $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE)
rm -rf $(PLATFORM)/*; mkdir -p $(PLATFORM)
cd $(PLATFORM); $(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(TARBALLS_LOCATION)/$(ARCHIVE)
cd $(PLATFORM); $(CONFIGURE)
diff --git a/tools/depends/target/libffi/Makefile b/tools/depends/target/libffi/Makefile
index 713fb08ec1..5b6e0285ae 100644
--- a/tools/depends/target/libffi/Makefile
+++ b/tools/depends/target/libffi/Makefile
@@ -8,7 +8,7 @@ LIBDYLIB=$(PLATFORM)/.libs/$(LIBNAME).a
all: .installed-$(PLATFORM)
-$(PLATFORM): $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE) $(DEPS)
+$(PLATFORM): $(DEPS) | $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE)
rm -rf $(PLATFORM); mkdir -p $(PLATFORM)
cd $(PLATFORM); $(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(TARBALLS_LOCATION)/$(ARCHIVE)
cd $(PLATFORM); $(CONFIGURE)
diff --git a/tools/depends/target/libgcrypt/Makefile b/tools/depends/target/libgcrypt/Makefile
index 9ad708a35c..bb5a0053c5 100644
--- a/tools/depends/target/libgcrypt/Makefile
+++ b/tools/depends/target/libgcrypt/Makefile
@@ -31,7 +31,7 @@ LIBDYLIB=$(PLATFORM)/src/.libs/$(BYPRODUCT)
all: .installed-$(PLATFORM)
-$(PLATFORM): $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE) $(DEPS)
+$(PLATFORM): $(DEPS) | $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE)
rm -rf $(PLATFORM)/*; mkdir -p $(PLATFORM)
cd $(PLATFORM); $(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(TARBALLS_LOCATION)/$(ARCHIVE)
# do not build the tests or docs
diff --git a/tools/depends/target/libgpg-error/Makefile b/tools/depends/target/libgpg-error/Makefile
index 63825f09ab..5531a92b01 100644
--- a/tools/depends/target/libgpg-error/Makefile
+++ b/tools/depends/target/libgpg-error/Makefile
@@ -14,7 +14,7 @@ LIBDYLIB=$(PLATFORM)/src/.libs/$(LIBNAME).a
all: .installed-$(PLATFORM)
-$(PLATFORM): $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE) $(DEPS)
+$(PLATFORM): $(DEPS) | $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE)
rm -rf $(PLATFORM)/*; mkdir -p $(PLATFORM)
cd $(PLATFORM); $(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(TARBALLS_LOCATION)/$(ARCHIVE)
ifeq ($(TARGET_PLATFORM),appletvos)
diff --git a/tools/depends/target/libiconv/Makefile b/tools/depends/target/libiconv/Makefile
index 8782e51a78..7a7a981ef6 100644
--- a/tools/depends/target/libiconv/Makefile
+++ b/tools/depends/target/libiconv/Makefile
@@ -19,7 +19,7 @@ LIBDYLIB=$(PLATFORM)/lib/.libs/$(LIBNAME).a
all: .installed-$(PLATFORM)
-$(PLATFORM): $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE) $(DEPS)
+$(PLATFORM): $(DEPS) | $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE)
rm -rf $(PLATFORM)/*; mkdir -p $(PLATFORM)
cd $(PLATFORM); $(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(TARBALLS_LOCATION)/$(ARCHIVE)
cd $(PLATFORM); $(CONFIGURE)
diff --git a/tools/depends/target/libinput/Makefile b/tools/depends/target/libinput/Makefile
index d0aeb88093..7f6469760c 100644
--- a/tools/depends/target/libinput/Makefile
+++ b/tools/depends/target/libinput/Makefile
@@ -34,7 +34,7 @@ LIBDYLIB=$(PLATFORM)/build/libinput.so
all: .installed-$(PLATFORM)
-$(PLATFORM): $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE) $(DEPS)
+$(PLATFORM): $(DEPS) | $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE)
rm -rf $(PLATFORM)/*; mkdir -p $(PLATFORM)
cd $(PLATFORM); $(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(TARBALLS_LOCATION)/$(ARCHIVE)
cd $(PLATFORM); rm -rf build; mkdir -p build
diff --git a/tools/depends/target/libjpeg-turbo/Makefile b/tools/depends/target/libjpeg-turbo/Makefile
index 1b67cd0046..c64bfa8ac1 100644
--- a/tools/depends/target/libjpeg-turbo/Makefile
+++ b/tools/depends/target/libjpeg-turbo/Makefile
@@ -6,7 +6,7 @@ LIBDYLIB=$(PLATFORM)/build/libjpeg.a
all: .installed-$(PLATFORM)
-$(PLATFORM): $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE) $(DEPS)
+$(PLATFORM): $(DEPS) | $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE)
rm -rf $(PLATFORM)/*; mkdir -p $(PLATFORM)
cd $(PLATFORM); $(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(TARBALLS_LOCATION)/$(ARCHIVE)
cd $(PLATFORM); patch -p1 -i ../01-disable-executables.patch
diff --git a/tools/depends/target/liblzo2/Makefile b/tools/depends/target/liblzo2/Makefile
index 08eeb2671b..465df95428 100644
--- a/tools/depends/target/liblzo2/Makefile
+++ b/tools/depends/target/liblzo2/Makefile
@@ -11,7 +11,7 @@ LIBDYLIB=$(PLATFORM)/build/$(BYPRODUCT)
all: .installed-$(PLATFORM)
-$(PLATFORM): $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE) $(DEPS)
+$(PLATFORM): $(DEPS) | $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE)
rm -rf $(PLATFORM); mkdir -p $(PLATFORM)/build
cd $(PLATFORM); $(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(TARBALLS_LOCATION)/$(ARCHIVE)
cd $(PLATFORM)/build; $(CMAKE) $(CMAKE_OPTIONS) ..
diff --git a/tools/depends/target/libmicrohttpd/Makefile b/tools/depends/target/libmicrohttpd/Makefile
index 26d6c64b46..2d2e5f20b2 100644
--- a/tools/depends/target/libmicrohttpd/Makefile
+++ b/tools/depends/target/libmicrohttpd/Makefile
@@ -26,7 +26,7 @@ LIBDYLIB=$(PLATFORM)/src/microhttpd/.libs/$(LIBNAME).a
all: .installed-$(PLATFORM)
-$(PLATFORM): $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE) $(DEPS)
+$(PLATFORM): $(DEPS) | $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE)
rm -rf $(PLATFORM)/*; mkdir -p $(PLATFORM)
cd $(PLATFORM); $(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(TARBALLS_LOCATION)/$(ARCHIVE)
cd $(PLATFORM); patch -p1 -i ../001-remove-assert.patch
diff --git a/tools/depends/target/libnfs/Makefile b/tools/depends/target/libnfs/Makefile
index 0029cda86a..f4cfd33a37 100644
--- a/tools/depends/target/libnfs/Makefile
+++ b/tools/depends/target/libnfs/Makefile
@@ -12,7 +12,7 @@ LIBDYLIB=$(PLATFORM)/build/lib/$(BYPRODUCT)
all: .installed-$(PLATFORM)
-$(PLATFORM): $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE) $(DEPS)
+$(PLATFORM): $(DEPS) | $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE)
-rm -rf $(PLATFORM); mkdir -p $(PLATFORM)
cd $(PLATFORM); $(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(TARBALLS_LOCATION)/$(ARCHIVE)
cd $(PLATFORM); mkdir -p build
diff --git a/tools/depends/target/libplist/Makefile b/tools/depends/target/libplist/Makefile
index bf574d5798..7eda57c253 100644
--- a/tools/depends/target/libplist/Makefile
+++ b/tools/depends/target/libplist/Makefile
@@ -17,7 +17,7 @@ all: .installed-$(PLATFORM)
CONFIGURE=cp -f $(CONFIG_SUB) $(CONFIG_GUESS) .; ./configure --prefix=$(PREFIX) --disable-shared --without-cython
-$(PLATFORM): $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE) $(DEPS)
+$(PLATFORM): $(DEPS) | $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE)
rm -rf $(PLATFORM); mkdir -p $(PLATFORM)
cd $(PLATFORM); $(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(TARBALLS_LOCATION)/$(ARCHIVE)
cd $(PLATFORM); patch -p1 -i ../01-disable-tools-tests.patch
diff --git a/tools/depends/target/libpng/Makefile b/tools/depends/target/libpng/Makefile
index 934ab4cce2..eae10a37d4 100644
--- a/tools/depends/target/libpng/Makefile
+++ b/tools/depends/target/libpng/Makefile
@@ -27,7 +27,7 @@ LIBDYLIB=$(PLATFORM)/build/$(BYPRODUCT)
all: .installed-$(PLATFORM)
-$(PLATFORM): $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE) $(DEPS)
+$(PLATFORM): $(DEPS) | $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE)
rm -rf $(PLATFORM); mkdir -p $(PLATFORM)/build
cd $(PLATFORM); $(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(TARBALLS_LOCATION)/$(ARCHIVE)
cd $(PLATFORM)/build; $(CMAKE) $(CMAKE_OPTIONS) ..
diff --git a/tools/depends/target/libsdl/Makefile b/tools/depends/target/libsdl/Makefile
index 7f30df226d..d776b89370 100644
--- a/tools/depends/target/libsdl/Makefile
+++ b/tools/depends/target/libsdl/Makefile
@@ -20,7 +20,7 @@ LIBDYLIB=$(PLATFORM)/build/.libs/lib$(LIBNAME).a
all: .installed-$(PLATFORM)
-$(PLATFORM): $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE) $(DEPS)
+$(PLATFORM): $(DEPS) | $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE)
rm -rf $(PLATFORM); mkdir -p $(PLATFORM)
cd $(PLATFORM); $(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(TARBALLS_LOCATION)/$(ARCHIVE)
cd $(PLATFORM); patch -p1 -i ../01-SDL_SetWidthHeight.patch
diff --git a/tools/depends/target/libshairplay/Makefile b/tools/depends/target/libshairplay/Makefile
index 686134b66c..a2a1ed0e53 100644
--- a/tools/depends/target/libshairplay/Makefile
+++ b/tools/depends/target/libshairplay/Makefile
@@ -18,7 +18,7 @@ LIBDYLIB=$(PLATFORM)/src/lib/.libs/libshairplay.a
all: .installed-$(PLATFORM)
-$(PLATFORM): $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE) $(DEPS)
+$(PLATFORM): $(DEPS) | $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE)
rm -rf $(PLATFORM); mkdir -p $(PLATFORM)
cd $(PLATFORM); $(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(TARBALLS_LOCATION)/$(ARCHIVE)
cd $(PLATFORM); patch -p1 -i ../0001-configure-fix-dns-sd-check.patch
diff --git a/tools/depends/target/libudev/Makefile b/tools/depends/target/libudev/Makefile
index a7e1b764ed..81f905f657 100644
--- a/tools/depends/target/libudev/Makefile
+++ b/tools/depends/target/libudev/Makefile
@@ -17,7 +17,7 @@ LIBDYLIB=$(PLATFORM)/src/libudev/.libs/libudev.la
all: .installed-$(PLATFORM)
-$(PLATFORM): $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE) $(DEPS)
+$(PLATFORM): $(DEPS) | $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE)
rm -rf $(PLATFORM)/*; mkdir -p $(PLATFORM)
cd $(PLATFORM); $(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(TARBALLS_LOCATION)/$(ARCHIVE)
cd $(PLATFORM); $(AUTORECONF) -vif
diff --git a/tools/depends/target/libusb/Makefile b/tools/depends/target/libusb/Makefile
index f4368fd1eb..53776961c4 100644
--- a/tools/depends/target/libusb/Makefile
+++ b/tools/depends/target/libusb/Makefile
@@ -18,7 +18,7 @@ LIBDYLIB=$(PLATFORM)/.libs/$(LIBNAME).a
all: $(LIBDYLIB) .installed-$(PLATFORM)
-$(PLATFORM): $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE) $(DEPS)
+$(PLATFORM): $(DEPS) | $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE)
rm -rf $(PLATFORM)/*; mkdir -p $(PLATFORM)
cd $(PLATFORM); $(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(TARBALLS_LOCATION)/$(ARCHIVE)
cd $(PLATFORM); patch -p1 -i ../no-Werror.patch
diff --git a/tools/depends/target/libuuid/Makefile b/tools/depends/target/libuuid/Makefile
index 5f5a24a849..c091b77b78 100644
--- a/tools/depends/target/libuuid/Makefile
+++ b/tools/depends/target/libuuid/Makefile
@@ -15,7 +15,7 @@ LIBDYLIB=$(PLATFORM)/lib/$(LIBNAME).a
all: .installed-$(PLATFORM)
-$(PLATFORM): $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE) $(DEPS)
+$(PLATFORM): $(DEPS) | $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE)
rm -rf $(PLATFORM)/*; mkdir -p $(PLATFORM)
cd $(PLATFORM); $(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(TARBALLS_LOCATION)/$(ARCHIVE)
# e2fsprog libuuid often fails because it doesnt create include/uuid location before
diff --git a/tools/depends/target/libva/Makefile b/tools/depends/target/libva/Makefile
index ae307715bd..a100afb44f 100644
--- a/tools/depends/target/libva/Makefile
+++ b/tools/depends/target/libva/Makefile
@@ -40,7 +40,7 @@ all: .installed-$(PLATFORM)
download: $(TARBALLS_LOCATION)/$(ARCHIVE)
-$(PLATFORM): $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE) $(DEPS)
+$(PLATFORM): $(DEPS) | $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE)
rm -rf $(PLATFORM)/*; mkdir -p $(PLATFORM)
cd $(PLATFORM); $(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(TARBALLS_LOCATION)/$(ARCHIVE)
cd $(PLATFORM); rm -rf build; mkdir -p build
diff --git a/tools/depends/target/libxkbcommon/Makefile b/tools/depends/target/libxkbcommon/Makefile
index df576f674d..b692e15b26 100644
--- a/tools/depends/target/libxkbcommon/Makefile
+++ b/tools/depends/target/libxkbcommon/Makefile
@@ -17,7 +17,7 @@ LIBDYLIB=$(PLATFORM)/.libs/libxkbcommon.la
all: .installed-$(PLATFORM)
-$(PLATFORM): $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE) $(DEPS)
+$(PLATFORM): $(DEPS) | $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE)
rm -rf $(PLATFORM)/*; mkdir -p $(PLATFORM)
cd $(PLATFORM); $(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(TARBALLS_LOCATION)/$(ARCHIVE)
cd $(PLATFORM); $(CONFIGURE)
diff --git a/tools/depends/target/libxml2/Makefile b/tools/depends/target/libxml2/Makefile
index d3b4d352cf..bc6d0e2255 100644
--- a/tools/depends/target/libxml2/Makefile
+++ b/tools/depends/target/libxml2/Makefile
@@ -16,7 +16,7 @@ LIBDYLIB=$(PLATFORM)/build/$(BYPRODUCT)
all: .installed-$(PLATFORM)
-$(PLATFORM): $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE) $(DEPS)
+$(PLATFORM): $(DEPS) | $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE)
rm -rf $(PLATFORM)/*; mkdir -p $(PLATFORM)
cd $(PLATFORM); $(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(TARBALLS_LOCATION)/$(ARCHIVE)
cd $(PLATFORM); mkdir -p build
diff --git a/tools/depends/target/libxslt/Makefile b/tools/depends/target/libxslt/Makefile
index 292c2868e6..b9e320a96f 100644
--- a/tools/depends/target/libxslt/Makefile
+++ b/tools/depends/target/libxslt/Makefile
@@ -23,7 +23,7 @@ LIBDYLIB=$(PLATFORM)/$(LIBNAME)/.libs/$(LIBNAME).a
all: .installed-$(PLATFORM)
-$(PLATFORM): $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE) $(DEPS)
+$(PLATFORM): $(DEPS) | $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE)
rm -rf $(PLATFORM)/*; mkdir -p $(PLATFORM)
cd $(PLATFORM); $(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(TARBALLS_LOCATION)/$(ARCHIVE)
cd $(PLATFORM); patch -p1 -i ../01-all-disable-tests-docs.patch
diff --git a/tools/depends/target/libzip/Makefile b/tools/depends/target/libzip/Makefile
index 5034951740..a7e5a7164b 100644
--- a/tools/depends/target/libzip/Makefile
+++ b/tools/depends/target/libzip/Makefile
@@ -12,7 +12,7 @@ LIBDYLIB=$(PLATFORM)/build/lib/$(BYPRODUCT)
all: .installed-$(PLATFORM)
-$(PLATFORM): $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE) $(DEPS)
+$(PLATFORM): $(DEPS) | $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE)
rm -rf $(PLATFORM)/*; mkdir -p $(PLATFORM)
cd $(PLATFORM); $(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(TARBALLS_LOCATION)/$(ARCHIVE)
cd $(PLATFORM); $(CMAKE) -B build ${CMAKE_OPTIONS}
diff --git a/tools/depends/target/mariadb/Makefile b/tools/depends/target/mariadb/Makefile
index 20a8fe5347..932125d517 100644
--- a/tools/depends/target/mariadb/Makefile
+++ b/tools/depends/target/mariadb/Makefile
@@ -18,7 +18,7 @@ endif
all: .installed-$(PLATFORM)
-$(PLATFORM): $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE) $(DEPS)
+$(PLATFORM): $(DEPS) | $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE)
rm -rf $(PLATFORM); mkdir -p $(PLATFORM)/build
cd $(PLATFORM); $(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(TARBALLS_LOCATION)/$(ARCHIVE)
ifeq ($(OS),android)
diff --git a/tools/depends/target/mesa/Makefile b/tools/depends/target/mesa/Makefile
index ca8ce7381e..317ee5855d 100644
--- a/tools/depends/target/mesa/Makefile
+++ b/tools/depends/target/mesa/Makefile
@@ -73,7 +73,7 @@ all: .installed-$(PLATFORM)
download: $(TARBALLS_LOCATION)/$(ARCHIVE)
-$(PLATFORM): $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE) $(DEPS)
+$(PLATFORM): $(DEPS) | $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE)
rm -rf $(PLATFORM)/*; mkdir -p $(PLATFORM)
cd $(PLATFORM); $(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(TARBALLS_LOCATION)/$(ARCHIVE)
cd $(PLATFORM); rm -rf build; mkdir -p build
diff --git a/tools/depends/target/mtdev/Makefile b/tools/depends/target/mtdev/Makefile
index 58563af945..955c445336 100644
--- a/tools/depends/target/mtdev/Makefile
+++ b/tools/depends/target/mtdev/Makefile
@@ -17,7 +17,7 @@ LIBDYLIB=$(PLATFORM)/src/.libs/libmtdev.la
all: .installed-$(PLATFORM)
-$(PLATFORM): $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE) $(DEPS)
+$(PLATFORM): $(DEPS) | $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE)
rm -rf $(PLATFORM)/*; mkdir -p $(PLATFORM)
cd $(PLATFORM); $(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(TARBALLS_LOCATION)/$(ARCHIVE)
cd $(PLATFORM); $(CONFIGURE)
diff --git a/tools/depends/target/nettle/Makefile b/tools/depends/target/nettle/Makefile
index 2c609c7231..2e06a1055b 100644
--- a/tools/depends/target/nettle/Makefile
+++ b/tools/depends/target/nettle/Makefile
@@ -24,7 +24,7 @@ LIBDYLIB=$(PLATFORM)/lib$(LIBNAME).a
all: .installed-$(PLATFORM)
-$(PLATFORM): $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE) $(DEPS)
+$(PLATFORM): $(DEPS) | $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE)
rm -rf $(PLATFORM)/*; mkdir -p $(PLATFORM)
cd $(PLATFORM); $(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(TARBALLS_LOCATION)/$(ARCHIVE)
cd $(PLATFORM); patch -p1 -i ../01-disable_testsuite.patch
diff --git a/tools/depends/target/nghttp2/Makefile b/tools/depends/target/nghttp2/Makefile
index 339f5e47a2..9e2768e7c1 100644
--- a/tools/depends/target/nghttp2/Makefile
+++ b/tools/depends/target/nghttp2/Makefile
@@ -12,7 +12,7 @@ LIBDYLIB=$(PLATFORM)/build/lib/$(BYPRODUCT)
all: .installed-$(PLATFORM)
-$(PLATFORM): $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE) $(DEPS)
+$(PLATFORM): $(DEPS) | $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE)
rm -rf $(PLATFORM)/*; mkdir -p $(PLATFORM)/build
cd $(PLATFORM); $(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(TARBALLS_LOCATION)/$(ARCHIVE)
cd $(PLATFORM)/build; $(CMAKE) $(CMAKE_OPTIONS) ..
diff --git a/tools/depends/target/openssl/Makefile b/tools/depends/target/openssl/Makefile
index ee22a58eb1..da3274507a 100644
--- a/tools/depends/target/openssl/Makefile
+++ b/tools/depends/target/openssl/Makefile
@@ -51,7 +51,7 @@ LIBDYLIB=$(PLATFORM)/libssl.a
all: .installed-$(PLATFORM)
-$(PLATFORM): $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE) $(DEPS)
+$(PLATFORM): $(DEPS) | $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE)
rm -rf $(PLATFORM); mkdir -p $(PLATFORM)
cd $(PLATFORM); $(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(TARBALLS_LOCATION)/$(ARCHIVE)
ifeq ($(OS),android)
diff --git a/tools/depends/target/p8-platform/Makefile b/tools/depends/target/p8-platform/Makefile
index a6dd9b57f3..649c638b9a 100644
--- a/tools/depends/target/p8-platform/Makefile
+++ b/tools/depends/target/p8-platform/Makefile
@@ -14,7 +14,7 @@ LIBDYLIB=$(PLATFORM)/build/lib$(LIBNAME).a
all: .installed-$(PLATFORM)
-$(PLATFORM): $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE) $(DEPS)
+$(PLATFORM): $(DEPS) | $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE)
rm -rf $(PLATFORM); mkdir -p $(PLATFORM)/build
cd $(PLATFORM); $(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(TARBALLS_LOCATION)/$(ARCHIVE)
cd $(PLATFORM); patch -p1 -i ../0001-fix-c++17-support.patch
diff --git a/tools/depends/target/pcre/Makefile b/tools/depends/target/pcre/Makefile
index 26fc932852..3c682a4949 100644
--- a/tools/depends/target/pcre/Makefile
+++ b/tools/depends/target/pcre/Makefile
@@ -31,7 +31,7 @@ LIBDYLIB=$(PLATFORM)/build/$(BYPRODUCT)
all: .installed-$(PLATFORM)
-$(PLATFORM): $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE) $(DEPS)
+$(PLATFORM): $(DEPS) | $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE)
rm -rf $(PLATFORM); mkdir -p $(PLATFORM)
cd $(PLATFORM); $(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(TARBALLS_LOCATION)/$(ARCHIVE)
cd $(PLATFORM); mkdir -p build
diff --git a/tools/depends/target/python3/Makefile b/tools/depends/target/python3/Makefile
index d6b427e35a..f1a0146308 100644
--- a/tools/depends/target/python3/Makefile
+++ b/tools/depends/target/python3/Makefile
@@ -53,7 +53,7 @@ LIBDYLIB=$(PLATFORM)/libpython$(PYTHON_VERSION).a
all: .installed-$(PLATFORM)
-$(PLATFORM): $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE) $(DEPS)
+$(PLATFORM): $(DEPS) | $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE)
rm -rf $(PLATFORM)/*; mkdir -p $(PLATFORM)
cd $(PLATFORM); $(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(TARBALLS_LOCATION)/$(ARCHIVE)
cd $(PLATFORM); patch -p1 -i ../crosscompile.patch
diff --git a/tools/depends/target/pythonmodule-pil/Makefile b/tools/depends/target/pythonmodule-pil/Makefile
index b0b39a1b66..d1fde35439 100644
--- a/tools/depends/target/pythonmodule-pil/Makefile
+++ b/tools/depends/target/pythonmodule-pil/Makefile
@@ -60,7 +60,7 @@ export LDSHARED LDFLAGS PYTHONPATH
all: .installed-$(PLATFORM)
-$(PLATFORM): $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE) $(DEPS)
+$(PLATFORM): $(DEPS) | $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE)
rm -rf $(PLATFORM)/*; mkdir -p $(PLATFORM)
cd $(PLATFORM); $(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(TARBALLS_LOCATION)/$(ARCHIVE)
cd $(PLATFORM); patch -p1 -i ../pillow-crosscompile.patch
diff --git a/tools/depends/target/pythonmodule-pycryptodome/Makefile b/tools/depends/target/pythonmodule-pycryptodome/Makefile
index 6adbea17c8..0a05f5965b 100644
--- a/tools/depends/target/pythonmodule-pycryptodome/Makefile
+++ b/tools/depends/target/pythonmodule-pycryptodome/Makefile
@@ -35,7 +35,7 @@ endif
all: .installed-$(PLATFORM)
-$(PLATFORM): $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE) $(DEPS)
+$(PLATFORM): $(DEPS) | $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE)
rm -rf $(PLATFORM)/*; mkdir -p $(PLATFORM)
cd $(PLATFORM); $(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(TARBALLS_LOCATION)/$(ARCHIVE)
cd $(PLATFORM); patch -p1 -i ../01-nosetuptool.patch
diff --git a/tools/depends/target/pythonmodule-setuptools/Makefile b/tools/depends/target/pythonmodule-setuptools/Makefile
index 9a9992f643..493968fb59 100644
--- a/tools/depends/target/pythonmodule-setuptools/Makefile
+++ b/tools/depends/target/pythonmodule-setuptools/Makefile
@@ -5,7 +5,7 @@ LIBDYLIB=$(PLATFORM)/dist/$(LIBNAME)-$(VERSION)-py$(PYTHON_VERSION).egg
all: .installed-$(PLATFORM)
-$(PLATFORM): $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE) $(DEPS)
+$(PLATFORM): $(DEPS) | $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE)
rm -rf $(PLATFORM)/*; mkdir -p $(PLATFORM)
cd $(PLATFORM); $(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(TARBALLS_LOCATION)/$(ARCHIVE)
diff --git a/tools/depends/target/rapidjson/Makefile b/tools/depends/target/rapidjson/Makefile
index 050f7eebc6..bfa5b7be74 100644
--- a/tools/depends/target/rapidjson/Makefile
+++ b/tools/depends/target/rapidjson/Makefile
@@ -32,7 +32,7 @@ include ../../download-files.include
all: .installed-$(PLATFORM)
-$(PLATFORM): $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE) $(DEPS)
+$(PLATFORM): $(DEPS) | $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE)
ifeq ($(PREFIX),)
@echo
@echo "ERROR: please set PREFIX to the kodi install path e.g. $(MAKE) PREFIX=/usr/local"
diff --git a/tools/depends/target/samba-gplv3/Makefile b/tools/depends/target/samba-gplv3/Makefile
index 5c4765b81b..9a598c1066 100644
--- a/tools/depends/target/samba-gplv3/Makefile
+++ b/tools/depends/target/samba-gplv3/Makefile
@@ -54,7 +54,7 @@ export PKG_CONFIG_LIBDIR=$(PREFIX)/lib/pkgconfig
all: .installed-$(PLATFORM)
-$(PLATFORM): $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE) $(DEPS)
+$(PLATFORM): $(DEPS) | $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE)
rm -rf $(PLATFORM); mkdir -p $(PLATFORM)
cd $(PLATFORM); $(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(TARBALLS_LOCATION)/$(ARCHIVE)
cd $(PLATFORM); patch -p1 -i ../01-fix-dependencies.patch
diff --git a/tools/depends/target/samba/Makefile b/tools/depends/target/samba/Makefile
index fd2b770e00..1d7a8213e6 100644
--- a/tools/depends/target/samba/Makefile
+++ b/tools/depends/target/samba/Makefile
@@ -53,7 +53,7 @@ LIBDYLIB=$(PLATFORM)/source/bin/libsmbclient.a
all: .installed-$(PLATFORM)
-$(PLATFORM): $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE) $(DEPS)
+$(PLATFORM): $(DEPS) | $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE)
rm -rf $(PLATFORM); mkdir -p $(PLATFORM)
cd $(PLATFORM); $(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(TARBALLS_LOCATION)/$(ARCHIVE)
cd $(PLATFORM); patch -p1 -i ../samba30-3.0.37-configure.in.patch
diff --git a/tools/depends/target/spdlog/Makefile b/tools/depends/target/spdlog/Makefile
index f2ca418865..457a49715c 100644
--- a/tools/depends/target/spdlog/Makefile
+++ b/tools/depends/target/spdlog/Makefile
@@ -40,7 +40,7 @@ all: .installed-$(PLATFORM)
download: $(TARBALLS_LOCATION)/$(ARCHIVE)
-$(PLATFORM): $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE) $(DEPS)
+$(PLATFORM): $(DEPS) | $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE)
ifeq ($(PREFIX),)
@echo
@echo "ERROR: please set PREFIX to the kodi install path e.g. make PREFIX=/usr/local"
diff --git a/tools/depends/target/sqlite3/Makefile b/tools/depends/target/sqlite3/Makefile
index a09a03a9f8..7f10a37a5c 100644
--- a/tools/depends/target/sqlite3/Makefile
+++ b/tools/depends/target/sqlite3/Makefile
@@ -13,7 +13,7 @@ LIBDYLIB=$(PLATFORM)/.libs/lib$(LIBNAME)3.a
all: .installed-$(PLATFORM)
-$(PLATFORM): $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE) $(DEPS)
+$(PLATFORM): $(DEPS) | $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE)
rm -rf $(PLATFORM)/*; mkdir -p $(PLATFORM)
cd $(PLATFORM); $(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(TARBALLS_LOCATION)/$(ARCHIVE)
# do not build the program sqlite3
diff --git a/tools/depends/target/taglib/Makefile b/tools/depends/target/taglib/Makefile
index 2ae922950e..c5c2e01462 100644
--- a/tools/depends/target/taglib/Makefile
+++ b/tools/depends/target/taglib/Makefile
@@ -5,7 +5,7 @@ DEPS = ../../Makefile.include Makefile TAGLIB-VERSION ../../download-files.inclu
LIBDYLIB=$(PLATFORM)/build/$(LIBNAME)/$(BYPRODUCT)
all: .installed-$(PLATFORM)
-$(PLATFORM): $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE) $(DEPS)
+$(PLATFORM): $(DEPS) | $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE)
rm -rf $(PLATFORM); mkdir -p $(PLATFORM)
cd $(PLATFORM); $(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(TARBALLS_LOCATION)/$(ARCHIVE)
cd $(PLATFORM); rm -rf build; mkdir -p build
diff --git a/tools/depends/target/tinyxml/Makefile b/tools/depends/target/tinyxml/Makefile
index 38a7b63d3c..ed2989f2c3 100644
--- a/tools/depends/target/tinyxml/Makefile
+++ b/tools/depends/target/tinyxml/Makefile
@@ -18,7 +18,7 @@ LIBDYLIB=$(PLATFORM)/src/.libs/libtinyxml.a
all: .installed-$(PLATFORM)
-$(PLATFORM): $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE) $(DEPS)
+$(PLATFORM): $(DEPS) | $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE)
rm -rf $(PLATFORM); mkdir -p $(PLATFORM)
cd $(PLATFORM); $(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(TARBALLS_LOCATION)/$(ARCHIVE)
cd $(PLATFORM); $(AUTORECONF) -vif
diff --git a/tools/depends/target/udfread/Makefile b/tools/depends/target/udfread/Makefile
index 1658a094f9..342cf27f03 100644
--- a/tools/depends/target/udfread/Makefile
+++ b/tools/depends/target/udfread/Makefile
@@ -22,7 +22,7 @@ LIBDYLIB=$(PLATFORM)/.libs/$(BYPRODUCT)
all: .installed-$(PLATFORM)
download: $(TARBALLS_LOCATION)/$(ARCHIVE)
-$(PLATFORM): $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE) $(DEPS)
+$(PLATFORM): $(DEPS) | $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE)
rm -rf $(PLATFORM)/*; mkdir -p $(PLATFORM)
cd $(PLATFORM); $(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(TARBALLS_LOCATION)/$(ARCHIVE)
cd $(PLATFORM); $(AUTORECONF) -vif
diff --git a/tools/depends/target/wayland-protocols/Makefile b/tools/depends/target/wayland-protocols/Makefile
index 97374ef89b..c10d7a20dd 100644
--- a/tools/depends/target/wayland-protocols/Makefile
+++ b/tools/depends/target/wayland-protocols/Makefile
@@ -28,7 +28,7 @@ CONFIGURE=./configure --prefix=$(PREFIX)
all: .installed-$(PLATFORM)
-$(PLATFORM): $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE) $(DEPS)
+$(PLATFORM): $(DEPS) | $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE)
ifeq ($(PREFIX),)
@echo
@echo "ERROR: please set PREFIX to the kodi install path e.g. make PREFIX=/usr/local"
diff --git a/tools/depends/target/wayland/Makefile b/tools/depends/target/wayland/Makefile
index e4950ff2e9..5df950191c 100644
--- a/tools/depends/target/wayland/Makefile
+++ b/tools/depends/target/wayland/Makefile
@@ -17,7 +17,7 @@ LIBDYLIB=$(PLATFORM)/.libs/libwayland-client.la
all: .installed-$(PLATFORM)
-$(PLATFORM): $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE) $(DEPS)
+$(PLATFORM): $(DEPS) | $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE)
rm -rf $(PLATFORM)/*; mkdir -p $(PLATFORM)
cd $(PLATFORM); $(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(TARBALLS_LOCATION)/$(ARCHIVE)
cd $(PLATFORM); $(CONFIGURE)
diff --git a/tools/depends/target/waylandpp/Makefile b/tools/depends/target/waylandpp/Makefile
index c7e264c0aa..45f86614e4 100644
--- a/tools/depends/target/waylandpp/Makefile
+++ b/tools/depends/target/waylandpp/Makefile
@@ -33,7 +33,7 @@ BUILDDIR = $(PLATFORM)/build
all: .installed-$(PLATFORM)
-$(PLATFORM): $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE) $(DEPS)
+$(PLATFORM): $(DEPS) | $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE)
ifeq ($(PREFIX),)
@echo
@echo "ERROR: please set PREFIX to the kodi install path e.g. make PREFIX=/usr/local"
diff --git a/tools/depends/target/xz/Makefile b/tools/depends/target/xz/Makefile
index 95e46b51ad..d862ffe76b 100644
--- a/tools/depends/target/xz/Makefile
+++ b/tools/depends/target/xz/Makefile
@@ -8,7 +8,7 @@ LIBDYLIB=$(PLATFORM)/src/liblzma/liblzma.a
all: .installed-$(PLATFORM)
-$(PLATFORM): $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE) $(DEPS)
+$(PLATFORM): $(DEPS) | $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE)
rm -rf $(PLATFORM)/*; mkdir -p $(PLATFORM)
cd $(PLATFORM); $(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(TARBALLS_LOCATION)/$(ARCHIVE)
cd $(PLATFORM); $(CONFIGURE)
diff --git a/tools/depends/target/zlib/Makefile b/tools/depends/target/zlib/Makefile
index b7f6d41e6e..29aa75c00f 100644
--- a/tools/depends/target/zlib/Makefile
+++ b/tools/depends/target/zlib/Makefile
@@ -11,7 +11,7 @@ LIBDYLIB=$(PLATFORM)/build/$(BYPRODUCT)
all: .installed-$(PLATFORM)
-$(PLATFORM): $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE) $(DEPS)
+$(PLATFORM): $(DEPS) | $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE)
rm -rf $(PLATFORM); mkdir -p $(PLATFORM)/build
cd $(PLATFORM); $(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(TARBALLS_LOCATION)/$(ARCHIVE)
cd $(PLATFORM); patch -p1 -i ../01-all-disable_tests.patch