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).
This commit is contained in:
Hamish Moffatt 2008-09-04 02:39:23 +00:00
parent 7b759f0910
commit 87f0d783ff
1 changed files with 4 additions and 3 deletions

View File

@ -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