delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/07/19/00:17:27

X-Spam-Check-By: sourceware.org
Date: Wed, 18 Jul 2007 21:16:48 -0700
From: David Rothenberger <daveroth AT acm DOT org>
Subject: Re: cygwin's [g]make 3.81 seems not to understand conditionals
In-reply-to: <469EE285.2010603@gmail.com>
To: cygwin AT cygwin DOT com
Message-id: <469EE5B0.3010507@acm.org>
MIME-version: 1.0
References: <469EE285 DOT 2010603 AT gmail DOT com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.4) Gecko/20070604 Thunderbird/2.0.0.4 Mnenhy/0.7.5.666
X-IsSubscribed: yes
Reply-To: cygwin AT cygwin DOT com
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

On 7/18/2007 9:03 PM, Carlo Florendo wrote:
> I've got (and attached) this simple Makefile that checks the build 
> platform of a machine.
> 
> Here's the cut-and-pasted content of the Makefile:
> 
> PLATFORM=$(shell uname -s | cut -f 1 -d " " | cut -f 1 -d "_");

Try removing the trailing semicolon. It is not removed by make, so 
PLATFORM ends up being "CYGWIN;".

-- 
David Rothenberger                spammer? -> spam AT daveroth DOT dyndns DOT org
GPG/PGP: 0x92D68FD8, DB7C 5146 1AB0 483A 9D27 DFBA FBB9 E328 92D6 8FD8

Ferguson's Precept:
         A crisis is when you can't say "let's forget the whole thing."


--
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019