Date: Fri, 7 Feb 2014 22:52:05 +0400 From: Lev Serebryakov <lev@FreeBSD.org> To: Alfred Perlstein <bright@mu.org> Cc: freebsd-hackers@freebsd.org Subject: Re: Is it possible to get make variable without recursive expansion? Message-ID: <201495029.20140207225205@serebryakov.spb.ru> In-Reply-To: <52F5251A.8020401@mu.org> References: <12310461351.20140207203417@serebryakov.spb.ru> <52F5251A.8020401@mu.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Hello, Alfred. You wrote 7 =D1=84=D0=B5=D0=B2=D1=80=D0=B0=D0=BB=D1=8F 2014 =D0=B3., 22:25:= 30: AP> On 2/7/14 8:34 AM, Lev Serebryakov wrote: >> Hello, Freebsd-hackers. >> >> >> Suppose, I have in my Makefile such construction: >> >> A=3Dxxx >> B=3Dyyy >> ANB=3D${A} and ${B} >> >> Is it possible to get value of ANB without recursive expansion, i.e. s= tring >> "${A} and ${B} and" in this case? I know, that all expansions are done at >> last moment (If I don't use ":=3D" operator), but is it possible to block >> second- and more-level expansion? >> >> I need to output "ANB=3D${ANB}" construction to external file without = further >> expansion... >> AP> a: AP> echo "AMB=3D\$${AMB}" It will echo "AMB=3D${AMB}" as-is, as far as I understand, it is simple. A= nd I need to get "ANB=3D${A} and ${B}" output. --=20 // Black Lion AKA Lev Serebryakov <lev@FreeBSD.org>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201495029.20140207225205>