From owner-freebsd-current@FreeBSD.ORG Sat Jan 14 06:57:21 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 C16C616A41F; Sat, 14 Jan 2006 06:57:21 +0000 (GMT) (envelope-from max@love2party.net) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.188]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2697443D45; Sat, 14 Jan 2006 06:57:20 +0000 (GMT) (envelope-from max@love2party.net) Received: from [84.163.245.1] (helo=amd64.laiers.local) by mrelayeu.kundenserver.de (node=mrelayeu8) with ESMTP (Nemesis), id 0ML2ov-1ExfLj3XRw-0002I2; Sat, 14 Jan 2006 07:57:20 +0100 From: Max Laier Organization: FreeBSD To: freebsd-current@freebsd.org Date: Sat, 14 Jan 2006 07:57:55 +0100 User-Agent: KMail/1.8.3 MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1431239.NbBJ3kO48K"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200601140758.02019.max@love2party.net> X-Provags-ID: kundenserver.de abuse@kundenserver.de login:61c499deaeeba3ba5be80f48ecc83056 Cc: harti@freebsd.org Subject: 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 06:57:21 -0000 --nextPart1431239.NbBJ3kO48K Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi, in kmod.mk (and I believe in other places as well) we have constructs in th= e=20 form of this: ${SOMEARRAY:M${SOMEVAR}} However, make doesn't seem to=20 understand this. I don't see any traces that it ever did and I have no clu= e=20 if it should. I might well misunderstand things (not a make guru) so here is my testcase: | STUFF=3D foo bar foobar | FOO=3Dfoo |=20 | mtest: | echo ${STUFF:M${FOO}} and "$make mtest" gives: | echo } | } this clearly suggests that make is not equipped to handle the variable=20 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= =20 in .PATH? All I could come up with was ${.ALLSRC:M*${MY_FILE}} which doesn= 't=20 work as I am explaining here. =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 --nextPart1431239.NbBJ3kO48K Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQBDyKD6XyyEoT62BG0RAikeAJ0d0bZKPlfTic7QHfi9go/Ci7e9mACcCoZW QLd+BtrbSN0s3JrTp4SSeeM= =zX76 -----END PGP SIGNATURE----- --nextPart1431239.NbBJ3kO48K--