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

StackOverflow https://stackoverflow.com/questions/14368941

  •  16-01-2022
  •  | 
  •  

Question

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?

Was it helpful?

Solution

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.

OTHER TIPS

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.

I believe it is usually capitalized. At least on *nix systems.

Makefile (capitalized) is a standard in Unix world, where file system is case sensitive (i.e. makefile, MAKEFILE and Makefile are all different files). On Windows, it doesn't matter.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top