delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/06/23/09:09:52

X-Spam-Check-By: sourceware.org
Message-ID: <11266203.post@talk.nabble.com>
Date: Sat, 23 Jun 2007 06:09:33 -0700 (PDT)
From: mostlyharmless <garstonian AT hotmail DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: default Makefile path
In-Reply-To: <467D1612.60106@cox.net>
MIME-Version: 1.0
X-Nabble-From: garstonian AT hotmail DOT com
References: <11264648 DOT post AT talk DOT nabble DOT com> <467D1612 DOT 60106 AT cox DOT net>
X-IsSubscribed: yes
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



Greg Chicares wrote:
> 
> On 2007-06-23 09:33Z, mostlyharmless wrote:
>> When using make under cygwin (which I am using for the first time) I have
>> to
>> use the -f Makefile option otherwise it says:
>> make: *** No targets specified and no makefile found.  Stop.
>> do I have to set some environment variable so that I can just type
>> 'make'?
> 
> Are you using the option "-f Makefile" exactly, character for character?
> When a makefile with that exact name exists in the current directory?
> That should just work; there's no environment variable to set, and no
> default path other than the current directory.
> 
> Try experimenting in a directory where you have no makefile:
> 
> ~$ ls *akefile
> ls: cannot access *akefile: No such file or directory
> ~$ make
> make: *** No targets specified and no makefile found.  Stop.
> ~$ touch Makefile; make
> make: *** No targets.  Stop.
> ~$ echo 'all:' >Makefile; make
> make: Nothing to be done for `all'.
> ~$ make --version
> GNU Make 3.81
> Copyright (C) 2006  Free Software Foundation, Inc.
> This is free software; see the source for copying conditions.
> There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
> PARTICULAR PURPOSE.
> 
> This program built for i686-pc-cygwin
> 
> --
> 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/
> 
> 
> 

Ah! thank you - the problem was that my Makefile was all in capitals
'MAKEFILE', this was because I had transferred the code from an old linux PC
via a DOS floppy, and when i tried to rename before all I got was:

$ mv MAKEFILE Makefile
mv: `MAKEFILE' and `Makefile' are the same file

so I assumed (wrongly it seems) that cygwin was at times case insensitive,
thx both for your help, kind regards, mh
-- 
View this message in context: http://www.nabble.com/default-Makefile-path-tf3968526.html#a11266203
Sent from the Cygwin Users mailing list archive at Nabble.com.


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