瀏覽代碼

fix clean-target to only remove the current release, distclean-target still removes all

Torbjorn Svensson 20 年之前
父節點
當前提交
c70dde6399
共有 1 個文件被更改,包括 7 次插入 和 2 次删除
  1. 7 2
      Makefile

+ 7 - 2
Makefile

@@ -156,7 +156,12 @@ release: docs
 
 clean:
 	cd docs && make clean
-	rm -rf newrelease/
+	rm -rf newrelease/$(TARFILE)
+	rm -rf newrelease/$(ZIPFILE)
+	rm -rf newrelease/$(DIRNAME)
 	rm -rf $(DIRNAME)
 
-.PHONY: all release docs clean
+distclean: clean
+	rm -rf newrelease/
+
+.PHONY: all release docs clean distclean