tools: add Host/Uninstall where possible
[openwrt/staging/wigyori.git] / tools / flex / Makefile
index bb5aecbdfeadeef0f3803c6e9678b1de5a31978e..da037ae72d84b52181e28c8e46495ad922b9f4d2 100644 (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