On Fri, 2022-05-06 at 00:14 +0530, nikhil jain wrote: > 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 > ?
All exit paths of make go through the die() function, found in src/main.c. if you wanted to edit the code to do something non- standard, that's the place to put it.