help-make
[Top][All Lists]
Advanced

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

Re: Another Dumb Question


From: Noel Yap
Subject: Re: Another Dumb Question
Date: Thu, 12 Aug 2004 14:29:21 -0400
User-agent: Mozilla Thunderbird 0.5 (Windows/20040212)

Boris Kolpackov wrote:

"Oppermann, Henry" <address@hidden> writes:

As I understand it, when make invokes a process to handle a command and the
process ends, Make learns the exit value from the child process.  Is there a
way to gain access to this exit value?  I have a case where an assembler
returns a code which is valid for <= 4.  Above that value, I want to exit.
Make exits if the value is >0.

foo.o: foo.s
        strange_as $<; if [ $? -le 4 ]; then true; else false; fi

I believe you might even be able to get away with:

        strange_as $<; test $? -le 4

There might even be a way to combine the two commands into one.

Noel





reply via email to

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