www.delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=-1.5 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40,SPF_PASS |
X-Spam-Check-By: | sourceware.org |
Message-ID: | <2ca21dcc0901121106g28f0f585u68fd59388b0120ad@mail.gmail.com> |
Date: | Mon, 12 Jan 2009 19:06:39 +0000 |
From: | "Dave Korn" <dave DOT korn DOT cygwin AT googlemail DOT com> |
To: | cygwin AT cygwin DOT com |
Subject: | Re: Reliably check if we're running under cygwin inside Makefile |
Cc: | Fergus <fergus AT bonhard DOT uklinux DOT net> |
In-Reply-To: | <496B828A.3010006@bonhard.uklinux.net> |
MIME-Version: | 1.0 |
References: | <496B828A DOT 3010006 AT bonhard DOT uklinux DOT net> |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
Fergus wrote: > > osname := $(shell uname -s) > > osver := $(shell uname -r) > > cpuarch := $(shell uname -m) > > Probably the fault is mine but I can't get this to do anything useful in > Cygwin. You could try (something like): > > case `uname` in Hmm, did you try those first examples in bash before deciding they didn't work? Because your alternative proposal looks a lot like shell script... Perhaps you need to read the subject line again! cheers, DaveK -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |