Provide option for less verbose make output.

Allow autoconfiguration output to be silenced by setting the ARDUINO_QUIET_MAKE variable.
This commit is contained in:
Jonathan Anderson 2015-01-07 16:05:56 -03:30
parent 83441aa660
commit 8efc998932

View file

@ -16,6 +16,7 @@ runscript_if_exists = \
# 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 -c$(2)) space_pad_to = $(shell echo $(1) " " | head -c$(2))
ifndef ARDUINO_QUIET_MAKE
# 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 = $(call arduino_output,- $(call space_pad_to,$(2),20) $(1)) show_config_info = $(call arduino_output,- $(call space_pad_to,$(2),20) $(1))
@ -28,6 +29,7 @@ show_separator = $(call arduino_output,-------------------------)
$(call show_separator) $(call show_separator)
$(call arduino_output,Arduino.mk Configuration:) $(call arduino_output,Arduino.mk Configuration:)
endif # !ARDUINO_QUIET_MAKE
######################################################################## ########################################################################
# #