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.         <[EMAIL PROTECTED]>
Россия, Москва         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

Attachment: signature.asc
Description: PGP signature

Reply via email to