Date: Fri, 07 Feb 2014 12:44:37 -0800 From: Alfred Perlstein <bright@mu.org> To: lev@FreeBSD.org Cc: freebsd-hackers@freebsd.org Subject: Re: Is it possible to get make variable without recursive expansion? Message-ID: <52F545B5.7040407@mu.org> In-Reply-To: <933525355.20140207233844@serebryakov.spb.ru> References: <12310461351.20140207203417@serebryakov.spb.ru> <52F5251A.8020401@mu.org> <201495029.20140207225205@serebryakov.spb.ru> <52F52F06.8080605@mu.org> <933525355.20140207233844@serebryakov.spb.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
On 2/7/14, 11:38 AM, Lev Serebryakov wrote:
> Hello, Alfred.
> You wrote 7 февраля 2014 г., 23:07:50:
>
> AP> Your only option would be to "cheat" and not use the expanded form I think:
>
> AP> A=aaa
> AP> B=bbb
> AP> AMB=\$${A} and \$${B}
>
> AP> a:
> AP> echo "AMB=${AMB}"
>
> AP> Results in:
> AP> .(19:07:30)(alfred@freefall.freebsd.org)
> AP> ~ % make
> AP> echo "AMB=\${A} and \${B}"
> AP> AMB=${A} and ${B}
> AP> .(19:07:30)(alfred@freefall.freebsd.org)
> AP> ~ %
>
> AP> There is no way to query make(1) (that I can see) for the exact value at
> AP> the time of assignment and before expansion.
> It is pity, because I need to make it with MAKE_ENV & CONFIGURE_MAKE
> variables in out port system :(
>
>
>
~ % make -f Makefile -XV AMB
?
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?52F545B5.7040407>
