mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-15 09:23:44 +00:00
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:
16
Mmakefile
16
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
|
||||
|
||||
#-----------------------------------------------------------------------------#
|
||||
|
||||
Reference in New Issue
Block a user