瀏覽代碼

samrobb writes in Bug 233: only clean host sed if we built it

Mike Frysinger 20 年之前
父節點
當前提交
250245fa7e
共有 1 個文件被更改,包括 5 次插入0 次删除
  1. 5 0
      package/sed/sed.mk

+ 5 - 0
package/sed/sed.mk

@@ -70,6 +70,7 @@ use-sed-host-binary:
 
 host-sed: $(HOST_SED_TARGET)
 
+ifeq ($(HOST_SED_TARGET),build-sed-host-binary)
 host-sed-clean:
 	$(MAKE) DESTDIR=$(HOST_SED_DIR) -C $(SED_DIR1) uninstall
 	-$(MAKE) -C $(SED_DIR1) clean
@@ -77,6 +78,10 @@ host-sed-clean:
 host-sed-dirclean:
 	rm -rf $(SED_DIR1)
 
+else
+host-sed-clean host-sed-dirclean:
+
+endif
 
 #############################################################
 #