Changeset 23389


Ignore:
Timestamp:
2010-10-11T00:40:44+02:00 (6 years ago)
Author:
jow
Message:

[buildroot] Add two debug rules the examine the values of runtime make variables.
Based on patch by Philip Prindeville <philipp@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/rules.mk

    r23286 r23389  
    255255.PHONY: FORCE 
    256256 
     257val.%: 
     258        @$(if $(filter undefined,$(origin $*)),\ 
     259                echo "$* undefined" >&2, \ 
     260                echo '$(subst ','"'"',$($*))' \ 
     261        ) 
     262 
     263var.%: 
     264        @$(if $(filter undefined,$(origin $*)),\ 
     265                echo "$* undefined" >&2, \ 
     266                echo "$*='"'$(subst ','"'\"'\"'"',$($*))'"'" \ 
     267        ) 
     268 
    257269endif #__rules_inc 
Note: See TracChangeset for help on using the changeset viewer.