all:
command1
command2
command3I would like a make all to continue running all the commands even if an earlier command returns a nonzero code, but still have the make command itself return nonzero to indicate an error.
One way to achieve the first requirement is to prefix each command with -, so that errors are ignored:
all:
-command1
-command2
-command3However, this causes make to return 0, even when one of the commands returns nonzero. Running make --ignore-errors has the same effect.
I know it's possible to hack around this by scripting (save the return code after each command, etc.), but I thought I'd ask whether there's some simple make option that I'm overlooking.
Any tips would be appreciated.
--Ed
_______________________________________________ Help-make mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/help-make
