Date: Tue, 25 May 2004 15:44:51 +0100 From: Matthew Seaman <m.seaman@infracaninophile.co.uk> To: "N. Raghavendra" <raghu@mri.ernet.in> Cc: FreeBSD Questions <freebsd-questions@freebsd.org> Subject: Re: `call' function in `make' Message-ID: <20040525144451.GA49822@happy-idiot-talk.infracaninophile.co.uk> In-Reply-To: <16563.20591.846129.789297@riemann.mri.ernet.in> References: <16563.20591.846129.789297@riemann.mri.ernet.in>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --]
On Tue, May 25, 2004 at 07:25:59PM +0530, N. Raghavendra wrote:
> Is there an analogue in BSD `make' of the `call' function in `gmake':
> $(call VARIABLE,PARAM,PARAM,...)?
Not as such. You can however use the '!=' operator to assign a value
to a variable based on the output of some external command:
RATIO != sh -c 'echo $$(( $a / $b ))'
Cheers,
Matthew
--
Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks
Savill Way
PGP: http://www.infracaninophile.co.uk/pgpkey Marlow
Tel: +44 1628 476614 Bucks., SL7 1TH UK
[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (FreeBSD)
iD8DBQFAs1vjiD657aJF7eIRAkOUAJ9djnMOrhnXXDUlBC6vaOEpN7zxqQCfV5+I
Jg4Uti3cm2yUOA0mnHOYnOM=
=yvz+
-----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040525144451.GA49822>
