help-gnu-utils
[Top][All Lists]
Advanced

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

Re: make: how to selectively handle exit status of commands


From: Stan Brown
Subject: Re: make: how to selectively handle exit status of commands
Date: Sat, 21 Aug 2004 10:10:07 -0400
User-agent: MicroPlanet-Gravity/2.60.2060

"Paul Jarc" <prj@po.cwru.edu> wrote in gnu.utils.help:
>Stephan Petersen <cyber.mail883.10.spasp@xoxy.net> wrote:
>> What's the best way to deal with such cases, where make should abort
>> for *some* exit status values (e.g. > 40), but continue for others
>> (e.g. <= 40).
>
>target: deps
>       foo; expr "$$?" '<=' 40 > /dev/null

I know that MAKE incorporates some work-alikes for bits of the UNIX 
shells, so that even under DOS it does an "rm" to remove 
intermediate files.

Is there a document somewhere that explains just which bits of UNIX 
shell are included in MAKE I'd live to be able to write command 
lines like the above in my 4DOS-under-Win98 environment, but I don't 
feel comfortable about it unless I know the limits.

-- 
Stan Brown, Oak Road Systems, Tompkins County, New York, USA
                                   http://OakRoadSystems.com
"You want an intelligent conversation? Do what I do: talk to
yourself. It's the only way."        -- /Torch Song Trilogy/


reply via email to

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