Boris Kolpackov wrote:
"Oppermann, Henry" <[EMAIL PROTECTED]> 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
_______________________________________________ Help-make mailing list [EMAIL PROTECTED] http://lists.gnu.org/mailman/listinfo/help-make
