Subject: Re: make: .if exists weirdness
To: None <tech-pkg@netbsd.org>
From: Jan Schaumann <jschauma@netbsd.org>
List: tech-pkg
Date: 07/11/2003 21:14:51
--FkmkrVfFsRoUs1wW
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Jan Schaumann <jschauma@netbsd.org> wrote:
> Todd Vierling <tv@pobox.com> wrote:
> > On Fri, 11 Jul 2003, Jan Schaumann wrote:
> >=20
> > : FILE1=3D  ${PREFIX}/lib/libGL.so.5
> > : FILE2=3D  /usr/pkg/lib/libGL.so.5
> > : .if exists(${FILE1})
> >=20
> > Are you including bsd.prefs.mk before these lines?
>=20
> Yes.

Aaaarg, but the file in question did actually set PREFIX=3D${LOCALBASE} at
the end of the Makefile, *after* bsd.pkg.mk.  I had not noticed that.
If I put the test below that, it works as one would expect.

Still, I'm puzzled as to why it would work on some files but not on
others.

-Jan

--=20
chown -R us:enemy your_base

--FkmkrVfFsRoUs1wW
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (NetBSD)

iD8DBQE/D2ELfFtkr68iakwRAqy3AJ4va59CKhIP3h5vkiDQtqIgYKDHtACgiuAN
McNuiuIPhOKO8TiPMRNaYBU=
=TYXt
-----END PGP SIGNATURE-----

--FkmkrVfFsRoUs1wW--