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.
This commit is contained in:
Zoltan Somogyi
2000-11-29 00:10:07 +00:00
parent 7804006ffe
commit c23b2c882d

View File

@@ -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
#-----------------------------------------------------------------------------#