X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-1.8 required=5.0	tests=AWL,BAYES_00,RP_MATCHES_RCVD
X-Spam-Check-By: sourceware.org
Message-ID: <4ED96E81.4040901@cs.cmu.edu>
Date: Fri, 02 Dec 2011 16:34:09 -0800
From: Paul Allen Newell <pnewell@cs.cmu.edu>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.24) Gecko/20111103 Thunderbird/3.1.16
MIME-Version: 1.0
To: cygwin@cygwin.com
CC: pnewell@cs.cmu.edu
Subject: [SOLVED:] Re: best way to prevent a cygwin build?
References: <4ED88260.8010004@cs.cmu.edu> <CAEhDDbBcahB3jaicgWr69BjnjRFB6QVsms_2vxEq7sOY-gXg-g@mail.gmail.com> <4ED91DB8.6090208@gmail.com>
In-Reply-To: <4ED91DB8.6090208@gmail.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

On 12/2/2011 10:49 AM, Dave Korn wrote:
>
>    Well, in this particular case:
>
> ifeq (Cygwin, $(shell uname -o))
> $(error This project does not build in Cygwin)
> endif
>
>    Can be placed anywhere in the makefile, no need to modify the build rules.
>
>      cheers,
>        DaveK
>
>
Csaba, Warren, and Dave:

Thanks for all of your replies.

The syntax/line:
+++
$(error This project does not build in Cygwin)
+++

is exactly what I was looking for as I didn't know how to force an exit. 
I just tried it out and it works like a champ.

I also looked it up in GNU make man pages and it is there ... I don't 
know how I missed it last night as I "thought" I checked for error. My 
oversight on missing it, it was probably too late in the evening.

Paul




--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

