From owner-freebsd-questions@FreeBSD.ORG Tue May 25 07:46:08 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C7BF616A4CE for ; Tue, 25 May 2004 07:46:08 -0700 (PDT) Received: from smtp.infracaninophile.co.uk (ns0.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2EA7B43D41 for ; Tue, 25 May 2004 07:46:07 -0700 (PDT) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost.infracaninophile.co.uk [IPv6:::1])i4PEiqGl050023 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 25 May 2004 15:44:52 +0100 (BST) (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost)id i4PEip5F050022; Tue, 25 May 2004 15:44:51 +0100 (BST) (envelope-from matthew) Date: Tue, 25 May 2004 15:44:51 +0100 From: Matthew Seaman To: "N. Raghavendra" Message-ID: <20040525144451.GA49822@happy-idiot-talk.infracaninophile.co.uk> Mail-Followup-To: Matthew Seaman , "N. Raghavendra" , FreeBSD Questions References: <16563.20591.846129.789297@riemann.mri.ernet.in> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="SLDf9lqlvOQaIe6s" Content-Disposition: inline In-Reply-To: <16563.20591.846129.789297@riemann.mri.ernet.in> User-Agent: Mutt/1.5.6i X-Virus-Scanned: clamd / ClamAV version devel-20040525, clamav-milter version 0.71 X-Virus-Status: Clean X-Spam-Status: No, hits=-4.8 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=2.63 X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on happy-idiot-talk.infracaninophile.co.uk cc: FreeBSD Questions Subject: Re: `call' function in `make' X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 May 2004 14:46:08 -0000 --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--