This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
Re: ifeq, ifneq
- To: "Robert Soukop" <rsoukop at zucotto dot com>, <cygwin at sourceware dot cygnus dot com>
- Subject: Re: ifeq, ifneq
- From: "John Huddleston" <jhudd at itc dot nrcs dot usda dot gov>
- Date: Wed, 17 May 2000 15:14:16 -0600
- References: <003c01bfc03e$b9023c20$3701a8c0@ott.zucotto.com>
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