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
v19.07.3_mercusys_ac12_duma
Jo-Philipp Wich 14 years ago
parent 0f04c9ac37
commit 10f5101af3

@ -254,4 +254,16 @@ all:
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

Loading…
Cancel
Save