LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Extension of Makefile (https://www.linuxquestions.org/questions/linux-software-2/extension-of-makefile-477500/)

Nishant Desai 08-26-2006 04:13 AM

Extension of Makefile
 
Dear All,
I am new to the Linux, and we want to develop simple C project in the Linux, which includes more than one C file and header files, now as i search on the net to create the project with more than one file, i ll require a make file and for that i can create it into the GNU Emacs, but i am confused about the extension of Makefile, what could be the extension of Makefile? is there any specific extension for Makefile, or there is nothing like extension in the make file and if i ll create the make file and save it, then what exension i should give to save the makefile?

Thanks in Advance,
Nishant

Tinkster 08-26-2006 04:35 AM

As a rule of thumb, extensions don't mean much to most programs in Linux.

The name of a makefile is traditionally just that, "Makefile", with a
capital M. Some people will append a .mak, but the consequence is that
you have to invoke
make -f filename.mak
rather than just going
make


Cheers,
Tink

Nishant Desai 08-26-2006 05:09 AM

Quote:

Originally Posted by Tinkster
As a rule of thumb, extensions don't mean much to most programs in Linux.

The name of a makefile is traditionally just that, "Makefile", with a
capital M. Some people will append a .mak, but the consequence is that
you have to invoke
make -f filename.mak
rather than just going
make


Cheers,
Tink

Dear Tink,
Thanks for the reply first of all to give me this information, which i didnt know at anyways, but i am still confused about saving the Makefile after creating it in Linux, if i am designing Makefile for my project, then with which extension i should save it? should there be any particular extension or any extension is acceptable?

Please forgive me if i am asking a silly question, but i am new to the Linux and i want to know this...

Thanks,
Nishant

Tinkster 08-26-2006 03:16 PM

Quote:

The name of a makefile is traditionally just that, "Makefile", with a
capital M.
No extension.


Cheers,
Tink


All times are GMT -5. The time now is 08:49 AM.