Hi Brian, I am not using -k.
My question is how do I print the exit status in the make itself before exiting make. May be at the last of main.c (main function) ? but how ? Which variable stores the exit code just before make exits ? Thanks Nikhil On Thu, May 5, 2022 at 11:48 PM Brian Cowan <cowan...@us.ibm.com> wrote: > Unless you have specified -k, a non-zero result from executing the build > script will cause make to terminate with a non-zero return code. If you use > -k, I would expect a non-zero return code from make even after the make > continues. It seems to do that in my rather stilted test… I’m not sure of > the utility of -k, but I have seen environments where *a* component would > fail in the first pass of a -k build, and then complete successfully in a > second -k build. Sometimes it's faster to just run the build 2x than to > chase down what's happening in the build dependencies... >