make(1) is broken?

Stanislav Sedov ssedov at mbsd.msk.ru
Thu Aug 10 12:09:15 UTC 2006


Hi!

I have a strange problem linked with make(1)

Consider the following Makefile:
---------------------------------------------------------------
COMPS=aa ab ac
AA=aa

VAR1=${COMPS:Maa}
VAR2=${COMPS:M${AA}}

.for COMP in ${AA}
VAR3=${COMPS:M${COMP}}
.endfor
---------------------------------------------------------------

Now, running make(1) gives:
% make -V VAR1
aa
% make -V VAR2
}
% make -V VAR3
aa

Results for VAR2 seems quite strange for me. It looks like
${COMP}!=${AA}

So, the question: is make(1) broken, or it's my misunderstanding?

Any help greatly appreciated. Thanks!

-- 
Stanislav Sedov         MBSD labs, Inc.         <ssedov at mbsd.msk.ru>
Россия, Москва         http://mbsd.msk.ru

--------------------------------------------------------------------
If the facts don't fit the theory, change the facts.  -- A. Einstein
--------------------------------------------------------------------
PGP fingerprint:  F21E D6CC 5626 9609 6CE2  A385 2BF5 5993 EB26 9581
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20060810/da1ac800/signature.pgp


More information about the freebsd-ports mailing list