mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-01-29 14:52:12 +01:00
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
This commit is contained in:
parent
ec0889ea85
commit
434d89bd30
6
Makefile
6
Makefile
@ -633,6 +633,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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user