help-make
[Top][All Lists]
Advanced

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

Re: $(shell ...) exit status


From: Greg Chicares
Subject: Re: $(shell ...) exit status
Date: Wed, 21 Feb 2007 13:56:38 +0000
User-agent: Thunderbird 1.5.0.4 (Windows/20060516)

On 2007-2-21 13:45 UTC, Paul Smith wrote:
> On Wed, 2007-02-21 at 10:09 +0000, Greg Chicares wrote:
>> The command fails, and 'make' stops--on msw, e.g., I get:
>>
>>   process_begin: CreateProcess(NULL, false, ...) failed.
> 
> That must be a bug in the MSW version of GNU make.  On a POSIX system
> there is no message or error if the command invoked by the shell exits
> with a non-zero (failure) exit code.

I misinterpreted what I saw: make doesn't actually stop.

x := $(shell false)

.PHONY: all
all:
        @echo $x
        @echo Done.

Result:

  C:/tmp[0]$make
  process_begin: CreateProcess(NULL, false, ...) failed.

  Done.

The message about 'CreateProcess' is actually useful in many cases.




reply via email to

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