Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Makefile error output.

Status
Not open for further replies.

ranjank

IS-IT--Management
May 9, 2003
176
IN
Hi,

I want to redirect the error out of the Makefile to some log file and sends a mail to designer if the Makefile compilation fails.

I know with Makefile 2> error.log you can redirect warnings and error,but would like to know a better way of getting the exact error from error.log file and then sending a mail about the failure/s.

Regards,
Ranjan.
 
Two ideas:
- Check the return code (exit code, exit status, ...) of your makefile. If it generates more than 0/1, pass/fail codes, this may start breaking things down to what your looking for.

- Write a script to parse the error log and generate the desired email. I can't start to offer suggestions on contents of the script as I can't be sure what granularity of error verification you need to look for. If you just need module names, sub-string them out and email away. If you're trying to resolve core dumps, you'll have to put a little more work into your script.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top