Date: Sat, 14 Jan 2006 07:57:55 +0100 From: Max Laier <max@love2party.net> To: freebsd-current@freebsd.org Cc: harti@freebsd.org Subject: make or kmod.mk broken Message-ID: <200601140758.02019.max@love2party.net>
next in thread | raw e-mail | index | archive | help
[-- Attachment #1 --]
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 testcase:
| STUFF= foo bar foobar
| FOO=foo
|
| 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.
--
/"\ Best regards, | mlaier@freebsd.org
\ / Max Laier | ICQ #67774661
X http://pf4freebsd.love2party.net/ | mlaier@EFnet
/ \ ASCII Ribbon Campaign | Against HTML Mail and News
[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (FreeBSD)
iD8DBQBDyKD6XyyEoT62BG0RAikeAJ0d0bZKPlfTic7QHfi9go/Ci7e9mACcCoZW
QLd+BtrbSN0s3JrTp4SSeeM=
=zX76
-----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200601140758.02019.max>
