From owner-freebsd-current@FreeBSD.ORG Sat Jan 14 20:12:58 2006 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F0AA916A41F; Sat, 14 Jan 2006 20:12:58 +0000 (GMT) (envelope-from max@love2party.net) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.183]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3F54843D48; Sat, 14 Jan 2006 20:12:58 +0000 (GMT) (envelope-from max@love2party.net) Received: from [84.163.252.125] (helo=amd64.laiers.local) by mrelayeu.kundenserver.de (node=mrelayeu5) with ESMTP (Nemesis), id 0ML25U-1Exrlh0HvW-0008G5; Sat, 14 Jan 2006 21:12:57 +0100 From: Max Laier Organization: FreeBSD To: freebsd-current@freebsd.org Date: Sat, 14 Jan 2006 21:13:42 +0100 User-Agent: KMail/1.8.3 References: <200601140758.02019.max@love2party.net> <20060114195054.GB4687@ip.net.ua> In-Reply-To: <20060114195054.GB4687@ip.net.ua> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart4605095.hPhq1aHIn2"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200601142113.49362.max@love2party.net> X-Provags-ID: kundenserver.de abuse@kundenserver.de login:61c499deaeeba3ba5be80f48ecc83056 Cc: harti@freebsd.org Subject: Re: make or kmod.mk broken X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 14 Jan 2006 20:12:59 -0000 --nextPart4605095.hPhq1aHIn2 Content-Type: text/plain; charset="iso-8859-6" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Saturday 14 January 2006 20:50, Ruslan Ermilov wrote: > On Sat, Jan 14, 2006 at 07:57:55AM +0100, Max Laier wrote: > > Hi, > > > > in kmod.mk (and I believe in other places as well) we have constructs in > > the form of this: ${SOMEARRAY:M${SOMEVAR}} However, make doesn't seem = to > > understand this. I don't see any traces that it ever did and I have no > > clue if it should. > > > > I might well misunderstand things (not a make guru) so here is my=20 testcase: > > | STUFF=3D foo bar foobar > > | FOO=3Dfoo > > | > > | mtest: > > | echo ${STUFF:M${FOO}} > > > > and "$make mtest" gives: > > | echo } > > | } > > > > this clearly suggests that make is not equipped to handle the variable > > expansion here. > > > > In any case we have to fix either kmod.mk or make. > > > > On a related question: How can I get the actual location of a file that > > is in .PATH? All I could come up with was ${.ALLSRC:M*${MY_FILE}} which > > doesn't work as I am explaining here. > > This OTOH works since FOO variable is special (it's evaluated at parse > time): > > STUFF=3D foo bar foobar > > mtest: > .for FOO in foo > @echo ${STUFF:M${FOO}} > .endfor Okay, I knew there was a catch. So this can be worked around, thanks for t= he=20 hint. > If there are other instances such as the example you've given, they should > indeed be fixed. I don't see any, sorry for the noise. =2D-=20 /"\ Best regards, | mlaier@freebsd.org \ / Max Laier | ICQ #67774661 X http://pf4freebsd.love2party.net/ | mlaier@EFnet / \ ASCII Ribbon Campaign | Against HTML Mail and News --nextPart4605095.hPhq1aHIn2 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQBDyVt9XyyEoT62BG0RAmlnAJ9pLuV0x2zeQBzC1hpT3uNDJI/EvQCdFNQY dsPoXkx9pkqs4f+9r6a+FoE= =rkvw -----END PGP SIGNATURE----- --nextPart4605095.hPhq1aHIn2--