I just use this kind of command to achieve recursive make call: BUILDUNITS := $(shell cd $(WORKAREA)/sub_dir && $(MAKE) $(MAKECMDGOALS)) my first question is: Is it possible that the shell function is the reason to cause this problem? 2nd.question is:Is there some kind of error detector in make? my current asume is if there's a error been detected I can add a error function in parent makefile.
Thanks and BR, Tao Philip Guenther-2 wrote: > > On Mon, Nov 24, 2008 at 4:52 AM, Tao T <[EMAIL PROTECTED]> wrote: >> Currently the situation is that I want stop the parent_make immediately >> when >> there is an error occurs in sub_make. > ... >> I hope the parent exit immediately when the sub'error occurs. >> who has some suggestion to achieve this functionality? > > By default, if a command run for a rule fails, make fails the rule and > exits. If that's not happening, it's because the rule definitions in > the 'parent' makefile are throwing away or ignoring the status of the > recursive make calls. > > So: fix your broken rules. (If you want more details, you should show > what those rules currently look like.) > > > Philip Guenther > > > _______________________________________________ > Help-make mailing list > [email protected] > http://lists.gnu.org/mailman/listinfo/help-make > > -- View this message in context: http://www.nabble.com/how-to-exit-the-parent_make-immediately-when-get-an-error-in-submake-tp20660308p20677968.html Sent from the Gnu - Make - Help mailing list archive at Nabble.com. _______________________________________________ Help-make mailing list [email protected] http://lists.gnu.org/mailman/listinfo/help-make
