I hope to record the result of stderr & stdout to different files, while watching both outputs from the terminal.
So I use tee, and found a solution in this page.
But the sad thing is, it can't work when put into a makefile:
all:
@command > >(tee stdout.log) 2> >(tee stderr.log >&2)
It seems that make will use sh -c to execute this line, which doesn't understand well about the syntax.
Can we have another solution for this?