Skip to content
Snippets Groups Projects
Commit 10f5101a authored by Jo-Philipp Wich's avatar Jo-Philipp Wich
Browse files

Add two debug rules the examine the values of runtime make variables. Based on...

Add two debug rules the examine the values of runtime make variables. Based on patch by Philip Prindeville <philipp@redfish-solutions.com>

SVN-Revision: 23389
parent 0f04c9ac
No related branches found
No related tags found
No related merge requests found
...@@ -254,4 +254,16 @@ all: ...@@ -254,4 +254,16 @@ all:
FORCE: ; FORCE: ;
.PHONY: FORCE .PHONY: FORCE
val.%:
@$(if $(filter undefined,$(origin $*)),\
echo "$* undefined" >&2, \
echo '$(subst ','"'"',$($*))' \
)
var.%:
@$(if $(filter undefined,$(origin $*)),\
echo "$* undefined" >&2, \
echo "$*='"'$(subst ','"'\"'\"'"',$($*))'"'" \
)
endif #__rules_inc endif #__rules_inc
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment