Subject: Re: make -j and failure modes
To: Greywolf <greywolf@starwolf.com>
From: James Chacon <jmc@NetBSD.org>
List: tech-userlevel
Date: 12/10/2003 21:09:15
On Wed, Dec 10, 2003 at 05:07:48PM -0800, Greywolf wrote:
> 
> Something just dawned on me, here:
> 
> If
> 
> 	"(false && echo bad) || echo ok"
> 
> doesn't work as expected, then adding "|| exit $?" to the end of it
> isn't going to make a difference.

For the Makefile's the lines in question look like this:

(cd ${.CURDIR} && ${MAKE} <some target>)

adding || exit $?

to the end of all those lines will give expected behavior.

James