Merge pull request #809 from nasa/703

Separate stdout and stderr during CP
This commit is contained in:
dbankieris 2019-06-12 09:15:50 -05:00 committed by GitHub
commit 053b42512b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)))../../..)