[OpenWrt-Devel] [PATCH] build: call Host/Uninstall before wiping the host build dir

Andre Heider a.heider at gmail.com
Sat Sep 28 07:10:59 EDT 2019

Uninstall targets may depend on build artefacts, like `make uninstall`
or `ninja uninstall`.

Signed-off-by: Andre Heider <a.heider at gmail.com>
 include/host-build.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/host-build.mk b/include/host-build.mk
index 827ea6bbfb..9fc14241c6 100644
--- a/include/host-build.mk
+++ b/include/host-build.mk
@@ -190,11 +190,11 @@ ifndef DUMP
   host-install: host-compile
   host-clean-build: FORCE
+	$(call Host/Uninstall)
   host-clean: host-clean-build
 	$(call Host/Clean)
-	$(call Host/Uninstall)
     ifneq ($(CONFIG_AUTOREMOVE),)

openwrt-devel mailing list
openwrt-devel at lists.openwrt.org

More information about the openwrt-devel mailing list