WIP: makefile command changes
authorPatrik Gornicz <Gornicz.P@gmail.com>
Sat, 12 Dec 2009 06:07:32 +0000 (01:07 -0500)
committerPatrik Gornicz <Gornicz.P@gmail.com>
Sat, 12 Dec 2009 06:07:32 +0000 (01:07 -0500)
Makefile
vars.mk

index e8caeea..0b7c779 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -3,6 +3,12 @@
 .PHONY: default
 default:
 
+# Suppress all builtin variables and rules
+MAKEFLAGS              += -rR
+
+# Suppress all command printing
+MAKEFLAGS              += -s
+
 G_DIRMK     := dir.mk
 G_VARSMK    := vars.mk
 G_FILESMK   := files.mk
diff --git a/vars.mk b/vars.mk
index 3509405..d767a29 100644 (file)
--- a/vars.mk
+++ b/vars.mk
@@ -150,26 +150,26 @@ VERBOSE := 0
 
 ifeq (${VERBOSE},0)
     # log the printf command
-    Q1s := @
+    Q1s :=
     Q1e := >> ${LOGFILE}
     # quiet the printf command
-    Q2s := @
+    Q2s :=
     Q2e :=
                # log the command
-    Q3s := @echo # NOTE: the space between @echo and the # is VERY important!!
+    Q3s := echo # NOTE: the space between @echo and the # is VERY important!!
     Q3e := >> ${LOGFILE}
     # quiet the command, log the output
-    Q4s := @set -o pipefail &&
+    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!!
+    Q1s := true # NOTE: the space between @true and the # is VERY important!!
     Q1e :=
     # EAT the quiet printf command
-    Q2s := @true # NOTE: the space between @true and the # is VERY important!!
+    Q2s := true # NOTE: the space between @true and the # is VERY important!!
     Q2e :=
                # EAT the logging command
-    Q3s := @true # NOTE: the space between @true and the # is VERY important!!
+    Q3s := true # NOTE: the space between @true and the # is VERY important!!
     Q3e :=
     # do not quiet the command
     Q4s :=