delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com> |
List-Archive: | <http://sourceware.cygnus.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT sourceware DOT cygnus DOT com> |
List-Help: | <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs> |
Sender: | cygwin-owner AT sourceware DOT cygnus DOT com |
Delivered-To: | mailing list cygwin AT sourceware DOT cygnus DOT com |
Message-ID: | <02c001bfc044$dbde47b0$9801010a@gpsr.colostate.edu> |
From: | "John Huddleston" <jhudd AT itc DOT nrcs DOT usda DOT gov> |
To: | "Robert Soukop" <rsoukop AT zucotto DOT com>, <cygwin AT sourceware DOT cygnus DOT com> |
References: | <003c01bfc03e$b9023c20$3701a8c0 AT ott DOT zucotto DOT com> |
Subject: | Re: ifeq, ifneq |
Date: | Wed, 17 May 2000 15:14:16 -0600 |
MIME-Version: | 1.0 |
X-Priority: | 3 |
X-MSMail-Priority: | Normal |
X-Mailer: | Microsoft Outlook Express 5.00.2314.1300 |
X-MimeOLE: | Produced By Microsoft MimeOLE V5.00.2314.1300 |
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 AT zucotto DOT com> To: <cygwin AT sourceware DOT cygnus DOT 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 AT sourceware DOT cygnus DOT com
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |