X-Recipient: archive-cygwin AT delorie DOT 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 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 AT cygwin DOT com CC: pnewell AT cs DOT cmu DOT edu Subject: [SOLVED:] Re: best way to prevent a cygwin build? References: <4ED88260 DOT 8010004 AT cs DOT cmu DOT edu> <4ED91DB8 DOT 6090208 AT gmail DOT 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 AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , 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 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