Print config info about ARDMK_DIR after Common.mk file is included
The show_config_variable macro is available in Common.mk file. So invoke it for ARDMK_DIR only after Common.mk file is included. Fix #111
This commit is contained in:
parent
82fad52f6c
commit
b78d843357
1 changed files with 17 additions and 9 deletions
|
@ -214,16 +214,10 @@ endif
|
||||||
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))))/..)
|
||||||
$(call show_config_variable,ARDMK_DIR,[COMPUTED],(relative to $(notdir $(lastword $(MAKEFILE_LIST)))))
|
|
||||||
else
|
else
|
||||||
$(call show_config_variable,ARDMK_DIR,[USER])
|
# show_config_variable macro is defined in Common.mk file and is not available yet.
|
||||||
endif
|
# Let's define a variable to know that user specified ARDMK_DIR
|
||||||
|
ARDMK_DIR_MSG = USER
|
||||||
ifndef ARDMK_PATH
|
|
||||||
ARDMK_PATH = $(ARDMK_DIR)/bin
|
|
||||||
$(call show_config_variable,ARDMK_PATH,[COMPUTED],(relative to ARDMK_DIR))
|
|
||||||
else
|
|
||||||
$(call show_config_variable,ARDMK_PATH,[USER])
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifneq ($(wildcard $(ARDMK_DIR)/arduino-mk/Common.mk),)
|
ifneq ($(wildcard $(ARDMK_DIR)/arduino-mk/Common.mk),)
|
||||||
|
@ -236,6 +230,20 @@ else
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
# show_config_variable macro is available now. So let's print config details for ARDMK_DIR
|
||||||
|
ifndef ARDMK_DIR_MSG
|
||||||
|
$(call show_config_variable,ARDMK_DIR,[COMPUTED],(relative to $(notdir $(lastword $(MAKEFILE_LIST)))))
|
||||||
|
else
|
||||||
|
$(call show_config_variable,ARDMK_DIR,[USER])
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifndef ARDMK_PATH
|
||||||
|
ARDMK_PATH = $(ARDMK_DIR)/bin
|
||||||
|
$(call show_config_variable,ARDMK_PATH,[COMPUTED],(relative to ARDMK_DIR))
|
||||||
|
else
|
||||||
|
$(call show_config_variable,ARDMK_PATH,[USER])
|
||||||
|
endif
|
||||||
|
|
||||||
########################################################################
|
########################################################################
|
||||||
#
|
#
|
||||||
# Arduino Directory
|
# Arduino Directory
|
||||||
|
|
Loading…
Reference in a new issue