Browse - Computer Tips - How do I capture the output of a make command?

Date: 2010mar4
OS: Linux
Level: beginner

Q.  How do I capture the output of a make command?

A.  Do this:

make 2>log 1>&2
The output will be in file log. This captures both stdout and stderr. Stdout will say what's being compiled. More detail: This says put file 2 (stderr) into file "log" and put file 1 (stdout) in the same place as file 2 (stderr).