[m-rev.] trivial diff: Fix the clean and realclean mmake targets

Paul Bone paul at bone.id.au
Tue Mar 28 17:08:55 AEDT 2017


Fix the clean and realclean mmake targets

Mmakefile:
    Use the SUBDIR_MMAKE command for cleaning in the tests directory

    Clean the scripts directory after all the others, regardless of
    dependency order or parallel builds.
---
 Mmakefile | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/Mmakefile b/Mmakefile
index 9d3d27b..0c1c80d 100644
--- a/Mmakefile
+++ b/Mmakefile
@@ -814,10 +814,11 @@ clean_subdirs:
 .PHONY: clean_tests
 clean_tests:
 	+if test -d tests; then \
-		(cd tests; $(MMAKE) clean) \
+		(cd tests; $(SUBDIR_MMAKE) clean) \
 	fi
 
 realclean: realclean_tests realclean_subdirs realclean_local
+	+cd scripts; $(SUBDIR_MMAKE) realclean
 
 .PHONY: realclean_local
 realclean_local: realclean_config realclean_docs
@@ -830,7 +831,6 @@ realclean_subdirs: clean_subdirs
 		if [ "$$dir" = scripts ]; then continue; fi; \
 		(cd $$dir; $(SUBDIR_MMAKE) realclean) \
 	done
-	+cd scripts; $(SUBDIR_MMAKE) realclean
 
 .PHONY: realclean_docs
 realclean_docs:
@@ -843,7 +843,7 @@ realclean_config:
 .PHONY: realclean_tests
 realclean_tests:
 	+if test -d tests; then \
-		(cd tests; $(MMAKE) realclean) \
+		(cd tests; $(SUBDIR_MMAKE) realclean) \
 	fi
 
 #-----------------------------------------------------------------------------#
-- 
2.7.4



More information about the reviews mailing list