Is it possible to get make variable without recursive expansion?
Lev Serebryakov
lev at FreeBSD.org
Fri Feb 7 19:38:53 UTC 2014
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 at freefall.freebsd.org)
AP> ~ % make
AP> echo "AMB=\${A} and \${B}"
AP> AMB=${A} and ${B}
AP> .(19:07:30)(alfred at 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 :(
--
// Black Lion AKA Lev Serebryakov <lev at FreeBSD.org>
More information about the freebsd-hackers
mailing list