δΊ 2013-1-23 19:43, Paolo Bonzini ει:
Il 23/01/2013 12:35, Wenchao Xia ha scritto:
Just use "clean: check-clean" and squash this with patch 1.
Paolo
That have a problem if test/Makefile is not included, which will
happen if make distclean is called once, then error will be shown
if make clean called again. It is also used by libqblock clean.
You can put the dependency in tests/Makefile.
Paolo
tests/Makefile would not be included, so it will directly fail.
Actually I use this variable as a bridge between root Makefile and
sub Makefile which would be included by root Makefile, just like
$TOOL. In this way root Makefile can stay unchanged when new subdir
is added, subdir's Makefile can add the step if it want been cleaned
automatically when "make clean" is called in root dir.
--
Best Regards
Wenchao Xia