help-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Function to display variable values


From: John Graham-Cumming
Subject: Re: Function to display variable values
Date: Fri, 05 Oct 2007 20:32:04 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040208 Thunderbird/0.5 Mnenhy/0.6.0.104

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Michael Morrell wrote:
> 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:

echo_var = $(warning $($1))

or if you have GNU Make 3.8.1

echo_var = $(info $($1))

or if you really want to use echo

echo_var = $(shell echo $($1))

John.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHBoMkLphrp73n/hARAl/5AKCeFK4Re2FoCwdzHvKa8D4zg6MJpwCgsOCv
BbxKnkZ8vXuKC47d+aFsPZg=
=1szu
-----END PGP SIGNATURE-----




reply via email to

[Prev in Thread] Current Thread [Next in Thread]