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: Angel Tsankov
Subject: Re: Exit status ignored during variable expansion?
Date: Thu, 28 Jul 2011 23:54:46 +0300
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.17) Gecko/20110414 Thunderbird/3.1.10

On 07/28/11 23:41, Stephan Beal wrote:
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)


That seems to work, but seems cumbersome... :(




reply via email to

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