Browse Source

Makefile: add new target cleantesting

* targets.mk: Add new target 'cleantesting', remove remnants from testing/.
* Makefile: Document new target.
Achim Gratz 7 years ago
parent
commit
472647fd5c
2 changed files with 10 additions and 4 deletions
  1. 3 1
      Makefile
  2. 7 3
      targets.mk

+ 3 - 1
Makefile

@@ -54,11 +54,13 @@ helpall::
 	$(info make cleanall      - remove everything that can be built and all remnants)
 	$(info make cleandirs     - clean in etc/, lisp/ and doc/)
 	$(info make cleancontrib  - remove remnants in contrib/)
+	$(info make cleantesting  - remove remnants in testing/)
+	$(info make cleanutils    - remove remnants in UTILITIES/)
 	$(info make cleandoc      - remove built documentation)
 	$(info make cleandocs     - ditto)
 	$(info make cleanlisp     - remove built Org ELisp files)
 	$(info make cleanelc      - ditto)
-	$(info make cleantest     - remove check remnants)
+	$(info make cleantest     - remove test directory)
 	$(info make clean-install - remove previous Org installation)
 	$(info )
 	$(info Configuration Check)

+ 7 - 3
targets.mk

@@ -24,8 +24,9 @@ endif
 
 .PHONY:	all oldorg update update2 up0 up1 up2 compile $(SUBDIRS) \
 	check test install info html pdf card doc docs $(INSTSUB) \
-	autoloads cleanall clean cleancontrib cleanutils cleanrel clean-install \
-	cleanelc cleandirs cleanlisp cleandoc cleandocs cleantest \
+	autoloads cleanall clean cleancontrib cleantesting cleanutils
+        cleanrel clean-install cleanelc cleandirs \
+        cleanlisp cleandoc cleandocs cleantest \
 	compile compile-dirty uncompiled \
 	config config-test config-exe config-all config-eol
 
@@ -114,12 +115,15 @@ clean:	cleanrel
 	$(MAKE) -C lisp clean
 	$(MAKE) -C doc clean
 
-cleanall: cleandirs cleantest cleancontrib cleanutils
+cleanall: cleandirs cleantest cleancontrib cleantesting cleanutils
 	-$(FIND) . -name \*~ -o -name \*# -o -name .#\* -exec $(RM) {} \;
 
 cleancontrib:
 	-$(FIND) contrib -name \*~ -o -name \*.elc -exec $(RM) {} \;
 
+cleantesting:
+	-$(FIND) testing -name \*~ -o -name \*.elc -exec $(RM) {} \;
+
 cleanutils:
 	-$(FIND) UTILITIES -name \*~ -o -name \*.elc -exec $(RM) {} \;