shell - 'tee' in makefile, can we copy stderr as well? -
i hope record result of stderr & stdout different files, while watching both outputs terminal.
so use tee, , found solution in this page.
but sad thing is, can't work when put makefile:
all: @command > >(tee stdout.log) 2> >(tee stderr.log >&2) it seems make use sh -c execute line, doesn't understand syntax.
can have solution this?
in order use syntax in makefile need change shell make uses running commands setting shell variable.
by invoking make using: make shell=/bin/bash, or putting shell:=/bin/bash @ start of makefile should accomplish this.
Comments
Post a Comment