From b3c9e75c1bc7edf0a23626c103f95d4eba5f12fe Mon Sep 17 00:00:00 2001 From: Derek Bankieris Date: Fri, 7 Jun 2019 09:34:53 -0500 Subject: [PATCH] Separate stdout and stderr during CP Closes #703 --- share/trick/makefiles/Makefile.common | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/share/trick/makefiles/Makefile.common b/share/trick/makefiles/Makefile.common index 2127e741..8d8c93fa 100644 --- a/share/trick/makefiles/Makefile.common +++ b/share/trick/makefiles/Makefile.common @@ -4,6 +4,7 @@ MV := /bin/mv RM := /bin/rm CP := /bin/cp MAKE_OUT := build/MAKE_out +MAKE_ERR := build/MAKE_err PWD = $(shell /bin/pwd) COLOR = $(1) @@ -19,7 +20,7 @@ endif define ECHO_AND_LOG $(call ECHO_TO_TERMINAL, $1) @echo $1 >> $(MAKE_OUT) -@$1 2>&1 | $(TEE) -a $(MAKE_OUT) ; exit $${PIPESTATUS[0]} +@$1 > >($(TEE) -a $(MAKE_OUT)) 2> >($(TEE) -a $(MAKE_ERR) >&2) endef export TRICK_HOME := $(abspath $(dir $(lastword $(MAKEFILE_LIST)))../../..)