From a3facaa6936f6247b1e994162a5d0721b11f1062 Mon Sep 17 00:00:00 2001 From: Werner Almesberger Date: Sun, 16 Jun 2013 15:29:59 -0300 Subject: [PATCH] Makefile.include: add verbosity control (make V=1 for previous behaviour) This shortens $(CC) and $(AR) lines to a much more readable length, making warnings stick out clearly. The spaces after "CC" and "AR" are to reserve space for other operations that may use longer names, such as the communly found "BUILD" or "GENERATE". --- Makefile.include | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/Makefile.include b/Makefile.include index dd9793ade23..521a9cbeebf 100644 --- a/Makefile.include +++ b/Makefile.include @@ -131,6 +131,21 @@ ifdef PLATFORMAPPS APPDS += $(PLATFORMAPPDS) endif +### Verbosity control. Use make V=1 to get verbose builds. + +CC_normal := $(CC) +AR_normal := $(AR) + +CC_quiet = @echo " CC " $< && $(CC_normal) +AR_quiet = @echo " AR " $@ && $(AR_normal) + +ifeq ($(V),1) + CC = $(CC_normal) + AR = $(AR_normal) +else + CC = $(CC_quiet) + AR = $(AR_quiet) +endif ### Forward comma-separated list of arbitrary defines to the compiler