Be able to silence configuration output
This commit is contained in:
parent
84648978fb
commit
a814a9c276
1 changed files with 12 additions and 4 deletions
|
@ -124,6 +124,8 @@
|
||||||
# instead copy them to e.g. /home/mjo/arduino.mk/bin then set
|
# instead copy them to e.g. /home/mjo/arduino.mk/bin then set
|
||||||
# ARDML_DIR = /home/mjo/arduino.mk
|
# ARDML_DIR = /home/mjo/arduino.mk
|
||||||
#
|
#
|
||||||
|
# If you'd rather not see the configuration output, define ARDUINO_QUIET.
|
||||||
|
#
|
||||||
########################################################################
|
########################################################################
|
||||||
#
|
#
|
||||||
# DEPENDENCIES
|
# DEPENDENCIES
|
||||||
|
@ -254,19 +256,25 @@ dir_if_exists = $(if $(wildcard $(1)$(2)),$(1))
|
||||||
# the number of bytes indicated by the second argument.
|
# the number of bytes indicated by the second argument.
|
||||||
space_pad_to = $(shell echo $(1) " " | head --bytes=$(2))
|
space_pad_to = $(shell echo $(1) " " | head --bytes=$(2))
|
||||||
|
|
||||||
|
ifndef ARDUINO_QUIET
|
||||||
|
arduino_output = $(info $(1))
|
||||||
|
else
|
||||||
|
arduino_output =
|
||||||
|
endif
|
||||||
|
|
||||||
# Call with some text, and a prefix tag if desired (like [AUTODETECTED]),
|
# Call with some text, and a prefix tag if desired (like [AUTODETECTED]),
|
||||||
show_config_info = $(info - $(call space_pad_to,$(2),20) $(1))
|
show_config_info = $(call arduino_output,- $(call space_pad_to,$(2),20) $(1))
|
||||||
|
|
||||||
# Call with the name of the variable, a prefix tag if desired (like [AUTODETECTED]),
|
# Call with the name of the variable, a prefix tag if desired (like [AUTODETECTED]),
|
||||||
# and an explanation if desired (like (found in $$PATH)
|
# and an explanation if desired (like (found in $$PATH)
|
||||||
show_config_variable = $(call show_config_info,$(1) = $($(1)) $(3),$(2))
|
show_config_variable = $(call show_config_info,$(1) = $($(1)) $(3),$(2))
|
||||||
|
|
||||||
# Just a nice simple visual separator
|
# Just a nice simple visual separator
|
||||||
show_separator = $(info -------------------------)
|
show_separator = $(call arduino_output,-------------------------)
|
||||||
|
|
||||||
|
|
||||||
$(call show_separator)
|
$(call show_separator)
|
||||||
$(info Arduino.mk Configuration:)
|
$(call arduino_output,Arduino.mk Configuration:)
|
||||||
|
|
||||||
ifndef ARDUINO_DIR
|
ifndef ARDUINO_DIR
|
||||||
AUTO_ARDUINO_DIR := $(firstword \
|
AUTO_ARDUINO_DIR := $(firstword \
|
||||||
|
@ -598,7 +606,7 @@ endif
|
||||||
|
|
||||||
|
|
||||||
ifneq (,$(strip $(ARDUINO_LIBS)))
|
ifneq (,$(strip $(ARDUINO_LIBS)))
|
||||||
$(info -)
|
$(call arduino_output,-)
|
||||||
$(call show_config_info,ARDUINO_LIBS =)
|
$(call show_config_info,ARDUINO_LIBS =)
|
||||||
endif
|
endif
|
||||||
ifneq (,$(strip $(USER_LIB_NAMES)))
|
ifneq (,$(strip $(USER_LIB_NAMES)))
|
||||||
|
|
Loading…
Reference in a new issue