Browse Source

server.mk: implement `cleanrel´ here

* targets.mk: Remove `cleanrel´.

* UTILITIES/server.mk: Implement `cleanrel´, use only the names that
  will be produced by server.mk.
Achim Gratz 12 years ago
parent
commit
ddcf4f8511
2 changed files with 7 additions and 8 deletions
  1. 5 1
      UTILITIES/server.mk
  2. 2 7
      targets.mk

+ 5 - 1
UTILITIES/server.mk

@@ -1,7 +1,7 @@
 #----------------------------------------------------------------------
 # This file is used for maintenance of org on the server.
 #----------------------------------------------------------------------
-.PHONY:	helpserver release rel-dirty tagwarn
+.PHONY:	helpserver release rel-dirty cleanrel tagwarn
 
 help helpall helpserver::
 	$(info )
@@ -59,3 +59,7 @@ tagwarn:
 	$(info  =                                                    =)
 	$(info  ======================================================)
 	@echo ""
+
+clean:	cleanrel
+cleanrel:
+	$(RM) org-7.* org-20??????*

+ 2 - 7
targets.mk

@@ -27,7 +27,7 @@ endif
 	check test install $(INSTSUB) \
 	info html pdf card refcard doc docs \
 	autoloads cleanall clean $(CLEANDIRS:%=clean%) \
-	cleanrel clean-install cleanelc cleandirs \
+	clean-install cleanelc cleandirs \
 	cleanlisp cleandoc cleandocs cleantest \
 	compile compile-dirty uncompiled \
 	config config-test config-exe config-all config-eol
@@ -118,7 +118,7 @@ autoloads: lisp
 cleandirs:
 	$(foreach dir, $(SUBDIRS), $(MAKE) -C $(dir) cleanall;)
 
-clean:	cleanrel cleanlisp cleandoc
+clean:	cleanlisp cleandoc
 
 cleanall: cleandirs cleantest
 	-$(FIND) . \( -name \*~ -o -name \*# -o -name .#\* \) -exec $(RM) {} \;
@@ -129,11 +129,6 @@ $(CLEANDIRS:%=clean%):
 
 cleanutils:	cleanUTILITIES
 
-cleanrel:
-	$(RMR) RELEASEDIR
-	$(RMR) org-7.*
-	$(RMR) org-7*zip org-7*tar.gz
-
 cleanelc:
 	$(MAKE) -C lisp $@