Subject: Re: can't get bmake to accept .if ${OPSYS}
To: Mark E. Perkins <perkinsm@bway.net>
From: grant beattie <grant@NetBSD.org>
List: tech-pkg
Date: 09/04/2004 16:12:41
On Fri, Sep 03, 2004 at 08:28:50PM -0400, Mark E. Perkins wrote:

> >You might also consider writing the following:
> >
> >OPSYSVARS+=        MAKEFLAGS
> >MAKEFLAGS.Darwin+=    RANLIB=ranlib
> >
> 
> Which approach is preferred? Or is it a matter of personal preference? 
> Gavan's method does not require (explicit) inclusion of mk/bsd.prefs.mk, 
> but how much of an advantage is that?

Gavan's syntax was introduced for operating system specific variables,
which is what you need, and it's cleaner :-)

grant.