浏览代码

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).

Hamish Moffatt 17 年之前
父节点
当前提交
87f0d783ff
共有 1 个文件被更改,包括 4 次插入3 次删除
  1. 4 3
      package/bridge-utils/bridge.mk

+ 4 - 3
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
+