This is the mail archive of the cygwin mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: default Makefile path

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

This program built for i686-pc-cygwin

Unsubscribe info:
Problem reports:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]