Skip site navigation (1)Skip section navigation (2)
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

--SLDf9lqlvOQaIe6s
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

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 '!=3D' operator to assign a value
to a variable based on the output of some external command:

    RATIO  !=3D sh -c 'echo $$(( $a / $b ))'

	Cheers,

	Matthew

--=20
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

--SLDf9lqlvOQaIe6s
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (FreeBSD)

iD8DBQFAs1vjiD657aJF7eIRAkOUAJ9djnMOrhnXXDUlBC6vaOEpN7zxqQCfV5+I
Jg4Uti3cm2yUOA0mnHOYnOM=
=yvz+
-----END PGP SIGNATURE-----

--SLDf9lqlvOQaIe6s--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040525144451.GA49822>