projects
/
openwrt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8803d87
)
[buildroot] Add two debug rules the examine the values of runtime make variables.
author
jow
<jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sun, 10 Oct 2010 22:40:44 +0000
(22:40 +0000)
committer
jow
<jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sun, 10 Oct 2010 22:40:44 +0000
(22:40 +0000)
Based on patch by Philip Prindeville <philipp@redfish-solutions.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23389
3c298f89
-4303-0410-b956-
a3cf2f4a3e73
rules.mk
patch
|
blob
|
history
diff --git
a/rules.mk
b/rules.mk
index
49044c8
..
7d3516b
100644
(file)
--- 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
This page took
0.025246 seconds
and
4
git commands to generate.