Subject: Re: make: .if exists weirdness
To: Jan Schaumann <jschauma@netbsd.org>
From: Todd Vierling <tv@pobox.com>
List: tech-pkg
Date: 07/11/2003 17:54:25
On Fri, 11 Jul 2003, Jan Schaumann wrote:

: FILE1=  ${PREFIX}/lib/libGL.so.5
: FILE2=  /usr/pkg/lib/libGL.so.5
: .if exists(${FILE1})

Are you including bsd.prefs.mk before these lines?  Otherwise ${PREFIX} will
not be set at the time ".if exists" is evaluated, so the first .if is
looking for "/lib/libGL.so.5", not "/usr/pkg/lib/libGL.so.5".

-- 
-- Todd Vierling <tv@pobox.com>