On Thu, Jul 28, 2011 at 9:37 PM, Angel Tsankov <[email protected]>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/
_______________________________________________
Help-make mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/help-make

Reply via email to