I am compiling a program using make and want the output of make to be written to a file. I have tried using > operator like
make > build_log.txt
and using tee command like
make | tee build_log.txt
but the problem is that some of the ouput goes into the file but rest keeps appearing on the screen.
I can simply copy/paste the text from terminal into a file after running make but that is not a solution.
So my question is how do I save i.e redirect all the output to file so that it goes into file only without appearing on screen.