added logging of commands
authorPatrik Gornicz <Gornicz.P@gmail.com>
Tue, 1 Dec 2009 03:24:27 +0000 (22:24 -0500)
committerPatrik Gornicz <Gornicz.P@gmail.com>
Tue, 1 Dec 2009 03:24:27 +0000 (22:24 -0500)
vars.mk

diff --git a/vars.mk b/vars.mk
index 1616d19..3509405 100644 (file)
--- a/vars.mk
+++ b/vars.mk
@@ -158,9 +158,9 @@ ifeq (${VERBOSE},0)
                # log the command
     Q3s := @echo # NOTE: the space between @echo and the # is VERY important!!
     Q3e := >> ${LOGFILE}
-    # quiet the command
-    Q4s := @
-    Q4e :=
+    # quiet the command, log the output
+    Q4s := @set -o pipefail &&
+    Q4e := 2>&1 | tee -a ${LOGFILE}
 else
     # EAT the logging printf command
     Q1s := @true # NOTE: the space between @true and the # is VERY important!!