help-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Exit status ignored during variable expansion?


From: Stephan Beal
Subject: Re: Exit status ignored during variable expansion?
Date: Thu, 28 Jul 2011 22:41:37 +0200

On Thu, Jul 28, 2011 at 9:37 PM, Angel Tsankov <address@hidden>wrote:

> If 'make' does not fail on non-zero exit from a command (during variable
> expansion) then we have no way to determine if the command completed
> successfully (with empty output) or if it failed.  This is my only concern.
>

Here's one way to do this:

X := $(shell .... >/dev/null 2>&1 && echo 1 || echo 0)

-- 
----- stephan beal
http://wanderinghorse.net/home/stephan/


reply via email to

[Prev in Thread] Current Thread [Next in Thread]