Subject: Re: can't get bmake to accept .if ${OPSYS}
To: Jeremy C. Reed <reed@reedmedia.net>
From: Gavan Fantom <gavan@coolfactor.org>
List: tech-pkg
Date: 09/04/2004 00:48:02
On Fri, 3 Sep 2004, Jeremy C. Reed wrote:
> On Fri, 3 Sep 2004, Mark E. Perkins wrote:
>
>> .if ${OPSYS} == "Darwin"
>> MAKEFLAGS+= RANLIB=ranlib
>> .endif
>>
>> When I do this, I get the following errors:
>>
>> bmake: "/usr/pkgsrc/local/tidy/Makefile" line 27: Malformed conditional
>> (${OPSYS} == "Darwin")
>
> I think this is because OPSYS is not defined yet. Include the
> mk/bsd.prefs.mk before that.
You might also consider writing the following:
OPSYSVARS+= MAKEFLAGS
MAKEFLAGS.Darwin+= RANLIB=ranlib
--
Gillette - the best a man can forget