I have a makefile which builds a project composed of many files which all need to be built.
To make matters more complicated, I have a number of included directories in each call to gcc (so each call to gcc looks long on the command line).
I’d like to suppress all output except for errors and warnings (so that I can actually see them when make runs!)
Is there any way to do this?
Depending on how “errors and warnings” are reported …
That will redirect all STDOUT (Standard Output) from the make command (and thus all sub-processes it spawns) to the endless bit-bucket of nothingness. This may be too greedy though, as some programs use STDOUT (and not STDERR) to report warnings.
I do not know of a way globally change STDOUT of all sub-processes from within the context of the Makefile itself.
Happy coding.