δΊ 2013-1-24 16:27, Paolo Bonzini ει:
Il 24/01/2013 02:51, Wenchao Xia ha scritto:
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.
What I mean is: add
clean: check-unit
in tests/Makefile. You don't need a variable as an intermediate step.
Paolo
OK, got your point, will fix.
--
Best Regards
Wenchao Xia