From 5ed507cf43e048f0a6a527c97ea6ed2e8cdb451f Mon Sep 17 00:00:00 2001 From: Christopher Peplin Date: Wed, 3 Jul 2013 16:40:16 -0400 Subject: [PATCH] Duplicate show_config_variable in each sub-makefile. This is unfortunate because the code is duplicated, but I don't see a good way around it since we need to dupliacate the check for ARDMK_DIR before we can find Common.mk. --- arduino-mk/Arduino.mk | 5 +++++ arduino-mk/chipKIT.mk | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/arduino-mk/Arduino.mk b/arduino-mk/Arduino.mk index dd9c38f..cb7f01c 100644 --- a/arduino-mk/Arduino.mk +++ b/arduino-mk/Arduino.mk @@ -211,6 +211,11 @@ endif ######################################################################## # Makefile distribution path # + +# Call with the name of the variable, a prefix tag if desired (like [AUTODETECTED]), +# and an explanation if desired (like (found in $$PATH) +show_config_variable = $(call show_config_info,$(1) = $($(1)) $(3),$(2)) + ifndef ARDMK_DIR # presume it's a level above the path to our own file ARDMK_DIR := $(realpath $(dir $(realpath $(lastword $(MAKEFILE_LIST))))/..) diff --git a/arduino-mk/chipKIT.mk b/arduino-mk/chipKIT.mk index 36eb80c..ea63001 100644 --- a/arduino-mk/chipKIT.mk +++ b/arduino-mk/chipKIT.mk @@ -23,6 +23,11 @@ ######################################################################## # Makefile distribution path # + +# Call with the name of the variable, a prefix tag if desired (like [AUTODETECTED]), +# and an explanation if desired (like (found in $$PATH) +show_config_variable = $(call show_config_info,$(1) = $($(1)) $(3),$(2)) + ifndef ARDMK_DIR # presume it's a level above the path to our own file ARDMK_DIR := $(realpath $(dir $(realpath $(lastword $(MAKEFILE_LIST))))/..)