Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 07 Feb 2014 10:25:30 -0800
From:      Alfred Perlstein <bright@mu.org>
To:        lev@FreeBSD.org, freebsd-hackers@freebsd.org
Subject:   Re: Is it possible to get make variable without recursive expansion?
Message-ID:  <52F5251A.8020401@mu.org>
In-Reply-To: <12310461351.20140207203417@serebryakov.spb.ru>
References:  <12310461351.20140207203417@serebryakov.spb.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2/7/14 8:34 AM, Lev Serebryakov wrote:
> Hello, Freebsd-hackers.
>
>
>   Suppose, I have in my Makefile such construction:
>
> A=xxx
> B=yyy
> ANB=${A} and ${B}
>
>   Is it possible to get value of ANB without recursive expansion, i.e. string
> "${A} and ${B} and" in this case? I know, that all expansions are done at
> last moment (If I don't use ":=" operator), but is it possible to block
> second- and more-level expansion?
>
>   I need to output "ANB=${ANB}" construction to external file without further
> expansion...
>
a:
         echo "AMB=\$${AMB}"

?

-- 
Alfred Perlstein




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?52F5251A.8020401>