From: Patrik Gornicz Date: Sat, 12 Dec 2009 06:07:32 +0000 (-0500) Subject: WIP: makefile command changes X-Git-Url: http://gitweb.pgornicz.com/?a=commitdiff_plain;h=55b26c7bc0aefb93a894e559d58e028d4b811d27;p=libbear.git WIP: makefile command changes --- diff --git a/Makefile b/Makefile index e8caeea..0b7c779 100644 --- 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 --- 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 :=