I want to log every error on building code.
so I can use -k to make it keep-going even error happened.
However, could I know some error has happened,
and it is -k to make it continue?
I know I can check some pattern error message like make: ***.
But I still wondering if I can have some message in log like:
“error happened, keep-going to make” when I have -k.
Thanks.
make reports errors on its output/error for human readers. Other computer programs can check its exit status, which should be non-zero if any error has occurred. If you’re calling make from a shell script, you could do something similar to
except change echo to something that’s actually useful for you. Other ways to call make will have similar options.