[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Function to display variable values
From: |
Michael Morrell |
Subject: |
Function to display variable values |
Date: |
Fri, 5 Oct 2007 11:26:59 -0700 (PDT) |
Is it possible to write a function that can display the value of an
arbitrary variable? For example, I want a function "echo_var" that I can
use as:
FOO = hello
BAR = goodbye
$(call echo_var, FOO)
$(call echo_var, BAR)
that will print:
FOO = hello
BAR = goodbye
I tried:
define echo_var
echo $(1) = $($(1))
endef
but that didn't work.
Michael
____________________________________________________________________________________
Tonight's top picks. What will you watch tonight? Preview the hottest shows on
Yahoo! TV.
http://tv.yahoo.com/
- Function to display variable values,
Michael Morrell <=