Problems with make
Momchil Velikov
velco@fadata.bg
Mon Jan 28 04:16:00 GMT 2002
>>>>> "Rupert" == Rupert Wood <me@rupey.net> writes:
Rupert> Kabir Patel wrote:
>> The makefile has the following :
>>
>> ex2: ex1.c
>> gcc ex1.c -o ex2
>>
>> and nothing else.
>> When I run >>make makefile
>> I always get the same message, namely:
>>
>> make: Nothing to be done for `makefile'.
Rupert> You need to tell make what you'd like it to build. If you don't specify
Rupert> anything then it assumes a target 'all' which doesn't exist in your
Rupert> makefile.
Actually it picks up the first target, no need for ``all''.
The problem is that there's no dependency upon the Makefile itself.
More information about the Gcc-help
mailing list