in reply to capturing compile errors
make 2>&1 | tee ./compile.log [download]
#!/usr/bin/bash make 2>&1 | tee ./compile.log [download]