From c23b2c882d95360d72f69ff93bf3818d41cc41bb Mon Sep 17 00:00:00 2001 From: Zoltan Somogyi Date: Wed, 29 Nov 2000 00:10:07 +0000 Subject: [PATCH] When executing mmake clean/realclean, execute the action in the tests Estimated hours taken: 0.3 Mmakefile: When executing mmake clean/realclean, execute the action in the tests subdirectory as well, if it exists. --- Mmakefile | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/Mmakefile b/Mmakefile index 64fbdd136..c65d09e55 100644 --- a/Mmakefile +++ b/Mmakefile @@ -471,7 +471,7 @@ bindist: #-----------------------------------------------------------------------------# -clean: clean_subdirs +clean: clean_subdirs clean_tests .PHONY: clean_subdirs clean_subdirs: @@ -481,7 +481,13 @@ clean_subdirs: (cd $$dir; $(SUBDIR_MMAKE) clean) \ done -realclean: realclean_subdirs realclean_local +.PHONY: clean_tests +clean_tests: + if test -d tests; then \ + (cd tests; $(MMAKE) clean) \ + fi + +realclean: realclean_subdirs realclean_local realclean_tests .PHONY: realclean_local realclean_local: realclean_config @@ -499,4 +505,10 @@ realclean_subdirs: clean_subdirs realclean_config: rm -f config.cache config.status config.log configure.log +.PHONY: realclean_tests +realclean_tests: + if test -d tests; then \ + (cd tests; $(MMAKE) realclean) \ + fi + #-----------------------------------------------------------------------------#