From 22161c56b39801c33e95ff301b6945aa1d881402 Mon Sep 17 00:00:00 2001 From: Stacey Sheldon Date: Sat, 2 Jun 2012 20:37:28 -0400 Subject: [PATCH] makefile: enable extra context when building multiple targets Extra message context is also useful even when building more than one target in the same invocation of make. This example would enable extra context: make fw_coptercontrol bl_coptercontrol --- Makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Makefile b/Makefile index 1be86c502..f55524cc4 100644 --- a/Makefile +++ b/Makefile @@ -631,6 +631,12 @@ ifneq ($(strip $(filter all_%,$(MAKECMDGOALS))),) export ENABLE_MSG_EXTRA := yes endif +# When building more than one goal in a single make invocation, also +# enable the extra context for each output line +ifneq ($(word 2,$(MAKECMDGOALS)),) +export ENABLE_MSG_EXTRA := yes +endif + # $(1) = Canonical board name all in lower case (e.g. coptercontrol) define BOARD_PHONY_TEMPLATE .PHONY: all_$(1)