From: jow Date: Sun, 10 Oct 2010 22:40:44 +0000 (+0000) Subject: [buildroot] Add two debug rules the examine the values of runtime make variables. X-Git-Url: http://git.rohieb.name/openwrt.git/commitdiff_plain/36d3a76afb32eda306753361abf13c3d4c41e555 [buildroot] Add two debug rules the examine the values of runtime make variables. Based on patch by Philip Prindeville git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23389 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- diff --git a/rules.mk b/rules.mk index 49044c8cf..7d3516bc4 100644 --- a/rules.mk +++ b/rules.mk @@ -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