Subject: Re: can't get bmake to accept .if ${OPSYS}
To: Mark E. Perkins <perkinsm@bway.net>
From: Jeremy C. Reed <reed@reedmedia.net>
List: tech-pkg
Date: 09/03/2004 16:55:54
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.

For examples, see: archivers/afio/Makefile, devel/binutils/Makefile,
devel/gdb/Makefile, devel/p4/Makefile.common and many others.

 Jeremy C. Reed

 	  	 	 technical support & remote administration
	  	 	 http://www.pugetsoundtechnology.com/