Explorar o código

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

Torbjorn Svensson %!s(int64=20) %!d(string=hai) anos
pai
achega
c70dde6399
Modificáronse 1 ficheiros con 7 adicións e 2 borrados
  1. 7 2
      Makefile

+ 7 - 2
Makefile

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