Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 7 Feb 2014 23:38:44 +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:  <933525355.20140207233844@serebryakov.spb.ru>
In-Reply-To: <52F52F06.8080605@mu.org>
References:  <12310461351.20140207203417@serebryakov.spb.ru> <52F5251A.8020401@mu.org> <201495029.20140207225205@serebryakov.spb.ru> <52F52F06.8080605@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., 23:07:=
50:

AP> Your only option would be to "cheat" and not use the expanded form I th=
ink:

AP> A=3Daaa
AP> B=3Dbbb
AP> AMB=3D\$${A} and \$${B}

AP> a:
AP>          echo "AMB=3D${AMB}"

AP> Results in:
AP> .(19:07:30)(alfred@freefall.freebsd.org)
AP> ~ % make
AP> echo "AMB=3D\${A} and \${B}"
AP> AMB=3D${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 a=
t=20
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 :(



--=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?933525355.20140207233844>