This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
RE: Problems with make
- From: "Rupert Wood" <me at rupey dot net>
- To: "'Momchil Velikov'" <velco at fadata dot bg>
- Cc: <kabir dot patel at uk dot andersen dot com>,<gcc-help at gcc dot gnu dot org>
- Date: Mon, 28 Jan 2002 12:27:58 -0000
- Subject: RE: Problems with make
Momchil Velikov wrote:
> >> When I run >>make makefile
:
> Rupert> You need to tell make what you'd like it to build. If you
> Rupert> don't specify anything then it assumes a target 'all' which
> Rupert> doesn't exist in your makefile.
>
> Actually it picks up the first target, no need for ``all''.
>
> The problem is that there's no dependency upon the Makefile itself.
Oops, yes, I stand corrected; answered from memory without checking
docs. I also hadn't noticed that he was running 'make makefile' instead
of plain 'make'.
Kabir, if you want to specify the makefile to use then you should type
'make -f <makefile name>'. It will automatically search a number of
filenames to use as the makefile including 'makefile' and 'Makefile' if
you don't specify -f.
Rup.