conditionals in Makefiles

"Larson, Timothy E." <[email protected]>
Newsgroups gmane.os.netbsd.devel.pkgsrc.wip.general
Message-ID <226316B3E1F749498E28ACA66321D5BA4A7A1B4B@oma00cexmbx03.corp.westworlds.com>
I am trying to make a block of my package Makefile conditional on the OPSYS, like so...

.if ${OPSYS} == "SunOS"
# do stuff....
.endif

...but when I bmake, it says ''Malformed conditional (${OPSYS} == "SunOS")'' and ''Need an operator''.  However, plenty of other package Makefiles are doing this, so I must be missing something.


Thanks,
Tim

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.