pkgsrc-WIP-discuss archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: conditionals in Makefiles



Am 19.11.2009 um 00:13 schrieb Larson, Timothy E.:

> 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.


make sure the following line is in the Makefile prior to referencing $ 
{OPSYS}:

.include "../../mk/bsd.prefs.mk"

-- 
Georg Schwarz    http://home.pages.de/~schwarz/
georg.schwarz%freenet.de@localhost  +49 151 11559652



------------------------------------------------------------------------------
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
_______________________________________________
pkgsrc-wip-discuss mailing list
pkgsrc-wip-discuss%lists.sourceforge.net@localhost
https://lists.sourceforge.net/lists/listinfo/pkgsrc-wip-discuss


Home | Main Index | Thread Index | Old Index