Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is the convention for naming make files to use a capital 'm', such as Makefile? [duplicate]

Possible Duplicate:
Should I name “makefile” or “Makefile”?

What's the standard convention for make files as far as its capitalization. I've seen both Makefile and makefile. Does it depend on language? Project?

like image 317
Piper Avatar asked Jan 16 '13 22:01

Piper


People also ask

Should Makefile be capitalized?

The Makefile Although the tool will look for Makefile or makefile, it is a firmly accepted standard practice to use the capitalized form. The Makefile defines a set of rules, targets, and dependencies.

Can capital letters be used in file names?

Capitalize the first letter of each word in a file name. This is called “CamelCase.” It is an efficient way to differentiate words but it can be harder to read. If the file name contains a capitalized acronym, it should appear in capitals and the first letter of the following word should also be capitalized.


2 Answers

You can use either of them, but conventionally Makefile is preferred over makefile. If you have both Makefile and makefile in the same directory and you just type make then makefile is executed and Makefile is ignored.

like image 83
Sagar Sakre Avatar answered Sep 19 '22 09:09

Sagar Sakre


It doesn't matter. The make program looks for either one. I personally prefer Makefile since I'm always on Linux and it shows up first in the directory listing since I use lower case on all of my .ccp and .h files.

like image 26
Erik Nedwidek Avatar answered Sep 22 '22 09:09

Erik Nedwidek