From: Hamish Moffatt Date: Thu, 4 Sep 2008 02:39:23 +0000 (-0000) Subject: Override the uninstall target rather than the clean target X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=87f0d783ff4b5c6e16f84a4f35b28d278718b13e;p=buildroot.git Override the uninstall target rather than the clean target Also, don't actually create the .stamp_uninstalled but remove the .stamp_installed file instead (ala the overridden target). --- diff --git a/package/bridge-utils/bridge.mk b/package/bridge-utils/bridge.mk index d8182b950f..70fdc39813 100644 --- a/package/bridge-utils/bridge.mk +++ b/package/bridge-utils/bridge.mk @@ -22,8 +22,9 @@ $(BRIDGE_HOOK_POST_INSTALL): $(BRIDGE_TARGET_INSTALL_TARGET) touch $@ # bridge has no uninstall target -$(BUILD_DIR)/bridge-$(BRIDGE_VERSION)/.stamp_cleaned: - $(call MESSAGE,"Cleaning up") +$(BUILD_DIR)/bridge-$(BRIDGE_VERSION)/.stamp_uninstalled: + $(call MESSAGE,"Uninstalling") rm -f $(addprefix $(TARGET_DIR)/usr/,lib/libbridge.a \ include/libbridge.h man/man8/brctl.8 sbin/brctl) - touch $@ + rm -f $(@D)/.stamp_target_installed +