This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: ifeq, ifneq


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]