make or broken

Max Laier max at
Fri Jan 13 22:57:21 PST 2006


in (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 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 at
\ /  Max Laier                          | ICQ #67774661
 X  | mlaier at EFnet
/ \  ASCII Ribbon Campaign              | Against HTML Mail and News
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url :

More information about the freebsd-current mailing list