ifeq, ifneq

John Huddleston jhudd@itc.nrcs.usda.gov
Wed May 17 14:14:00 GMT 2000


Robert, here is an example

export UNIX_VER:=$(shell uname -r)
ifeq ($(UNIX_VER), 1.1.1(0.20/3/2))
VERSION:=1.1.1
endif
ifeq ($(UNIX_VER), 5.6)
VERSION:=Solaris6
endif

Your mileage may vary depending upon the make
executable.  Some systems require a backslash '\' 
before the dollar sign '$' for the variables.  The
above works with the make 3.77 released with 
cygwin 1.1.1

John Huddleston

----- Original Message ----- 
From: Robert Soukop <rsoukop@zucotto.com>
To: <cygwin@sourceware.cygnus.com>
Sent: Wednesday, May 17, 2000 2:30 PM
Subject: ifeq, ifneq


I'm trying to test for equality and inequality in a makefile which will
be run in cygwin but it is not recognizing ifeq or ifneq.  Can someone
please tell me a way of doing this.  Thanks - Rob



--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com



More information about the Cygwin mailing list