make should pass through the last exit status to system, or should exit itself with some status that indicates error.
Have you looked at system and how one can catch the exit status of a subprocess? I would look at autodie, which is available with recent versions of Perl, or at the following idiom:
system( $cmd ) == 0 or die "Couldn't launch/run [$cmd]: $? / $! / $^E";
In reply to Re: Capture the make status
by Corion
in thread [SOLVED] Capture the make status
by baxy77bax
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |