I'm implementing a simple build system that's actually just a wrapper around Make. Since this build system already emits its own error messages, I don't want Make to produce error messages like
make: *** [/cool/makefile:116: /fun/target.o] Error 1
I'm already using the
-s flag to suppress most of Make's output. And I don't want Make to ignore errors; I still want it to stop and exit with a status. I can't just kill all error output with
make 2> /dev/null because I still want to see messages printed to
stderr by the tasks Make is running.
Is there a way to do this without manually parsing and sanitizing Make's output? I'm using GNU Make 4.2.1, and I don't mind GNU Make-specific solutions.