This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC 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: 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.


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