Subject: Re: Setting a make variable based on sh variable
To: Mark Davies <mark@mcs.vuw.ac.nz>
From: Luke Mewburn <lukem@NetBSD.org>
List: tech-pkg
Date: 06/18/2004 16:34:20
--QRtLtq+kfJNLc57H
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
On Fri, Jun 18, 2004 at 04:08:12PM +1200, Mark Davies wrote:
| In either Berkeley make or GNU make how can I set a make variable to th=
e value=20
| of a particular shell variable after having sourced a particular shell=
=20
| script?
|=20
| That is to say how do I get the result of:
|=20
| sh -c (. /usr/pkg/lib/tclConfig.sh; echo $TCL_LIBS)
|=20
| into a make variable?
NetBSD make:
SOME_VAR!=3D . /usr/pkg/lib/tclConfig.sh && echo $$TCL_LIBS
--QRtLtq+kfJNLc57H
Content-Type: application/pgp-signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (NetBSD)
iD8DBQFA0ozspBhtmn8zJHIRAoGkAKDORGqO4RSV3O6IA4dKWl2iCkKDFQCePaD0
AD/8apEzbwDzEHYWyfRQsYA=
=LsPp
-----END PGP SIGNATURE-----
--QRtLtq+kfJNLc57H--