Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 25 Jun 2010 15:15:16 +0200
From:      =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= <des@des.no>
To:        Patrick Mahan <mahan@mahan.org>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: Help with some makefile hackery
Message-ID:  <86mxujdziz.fsf@ds4.des.no>
In-Reply-To: <4C24A7B4.5050301@mahan.org> (Patrick Mahan's message of "Fri, 25 Jun 2010 05:57:24 -0700")
References:  <4C21A743.6040306@mahan.org> <86hbkujdto.fsf@ds4.des.no> <4C24A7B4.5050301@mahan.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Patrick Mahan <mahan@mahan.org> writes:
> In the top-level makefile I have the following label:
>
> src-kernel: src-kernel-tools
> 	cd src; ./amd64-kernel.sh 2>&1 | tee build_amd64_kernel.log
>
> If there is a build failure with the kernel, it can be seen in the
> file 'build_amd64_kernel.log'.  However, the top-level make file just
> continues on to the next label as if no error occurs.

Make looks at tee's exit status, not the script's.

DES
--=20
Dag-Erling Sm=C3=B8rgrav - des@des.no



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?86mxujdziz.fsf>