Date: Thu, 10 Aug 2006 16:08:36 +0600 From: Stanislav Sedov <ssedov@mbsd.msk.ru> To: freebsd-hackers@freebsd.org, ports@freebsd.org Subject: make(1) is broken? Message-ID: <20060810160836.40eb4128@localhost>
next in thread | raw e-mail | index | archive | help
--Sig_.kbk=UX5wQx2XLg/92CBHt_
Content-Type: text/plain; charset=KOI8-R
Content-Transfer-Encoding: quoted-printable
Hi!
I have a strange problem linked with make(1)
Consider the following Makefile:
---------------------------------------------------------------
COMPS=3Daa ab ac
AA=3Daa
VAR1=3D${COMPS:Maa}
VAR2=3D${COMPS:M${AA}}
.for COMP in ${AA}
VAR3=3D${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}!=3D${AA}
So, the question: is make(1) broken, or it's my misunderstanding?
Any help greatly appreciated. Thanks!
--=20
Stanislav Sedov MBSD labs, Inc. <ssedov@mbsd.msk.ru>
=F2=CF=D3=D3=C9=D1, =ED=CF=D3=CB=D7=C1 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
--Sig_.kbk=UX5wQx2XLg/92CBHt_
Content-Type: application/pgp-signature; name=signature.asc
Content-Disposition: attachment; filename=signature.asc
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (FreeBSD)
iD8DBQFE2wWlK/VZk+smlYERAh7MAJsEidt+U+HVg9ngOgoBEDccghd41gCfcqc+
SThr8DMpWsUoYXtlLh5MUc4=
=Np0M
-----END PGP SIGNATURE-----
--Sig_.kbk=UX5wQx2XLg/92CBHt_--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060810160836.40eb4128>
