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.
This commit is contained in:
parent
f90087a329
commit
5ed507cf43
2 changed files with 10 additions and 0 deletions
|
@ -211,6 +211,11 @@ endif
|
||||||
########################################################################
|
########################################################################
|
||||||
# Makefile distribution path
|
# 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
|
ifndef ARDMK_DIR
|
||||||
# presume it's a level above the path to our own file
|
# presume it's a level above the path to our own file
|
||||||
ARDMK_DIR := $(realpath $(dir $(realpath $(lastword $(MAKEFILE_LIST))))/..)
|
ARDMK_DIR := $(realpath $(dir $(realpath $(lastword $(MAKEFILE_LIST))))/..)
|
||||||
|
|
|
@ -23,6 +23,11 @@
|
||||||
########################################################################
|
########################################################################
|
||||||
# Makefile distribution path
|
# 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
|
ifndef ARDMK_DIR
|
||||||
# presume it's a level above the path to our own file
|
# presume it's a level above the path to our own file
|
||||||
ARDMK_DIR := $(realpath $(dir $(realpath $(lastword $(MAKEFILE_LIST))))/..)
|
ARDMK_DIR := $(realpath $(dir $(realpath $(lastword $(MAKEFILE_LIST))))/..)
|
||||||
|
|
Loading…
Reference in a new issue