tools: add Host/Uninstall where possible

This cleans staging_dir when calling tool/x/clean.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
Rosen Penev
2022-09-28 01:23:56 -07:00
committed by Christian Marangi
parent f2ae4e2f8c
commit a63805b25f
26 changed files with 100 additions and 14 deletions

View File

@@ -26,8 +26,12 @@ define Host/Install
$(LN) flex $(STAGING_DIR_HOST)/bin/lex
endef
define Host/Uninstall
-$(call Host/Compile/Default,uninstall)
endef
define Host/Clean
-$(MAKE) -C $(HOST_BUILD_DIR) uninstall
rm -f $(STAGING_DIR_HOST)/bin/lex
$(call Host/Clean/Default)
endef