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]

Problems with make





Dear all,

I am trying to use a makfile to compile a simple piece of C.

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

This occurs even when I edit the file, or use additional options such as -W, or
when I use 'touch'.

When I run the command manually (gcc ex1.c -o ex2) it compiles fine.

Could somebody please tell me why this might be the case?

Thanks


*******************Internet Email Confidentiality Footer*******************


Privileged/Confidential Information may be contained in this message.  If you
are not the addressee indicated in this message (or responsible for delivery of
the message to such person), you may not copy or deliver this message to anyone.
In such case, you should destroy this message and kindly notify the sender by
reply email. Please advise immediately if you or your employer does not consent
to Internet email for messages of this kind.  Opinions, conclusions and other
information in this message that do not relate to the official business of my
firm shall be understood as neither given nor endorsed by it.



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