tags:

views:

138

answers:

4

Is there a difference between using a makefile and a Makefile?

A: 

Oops. Should've Googled it.

If a directory has a makefile and a Makefile, gmake will take the makefile in preference.

Rob Wells
+1  A: 

No, there is none. Even on platforms that have case-sensitive file systems, the 'make' program will look for both names. GNU Make checks for 'makefile' then for 'Makefile' (technically it checks for GNUmakefile first, but you should not need to use that name).

florin
@florin. didn't accpet your answer because of the GNU caveat provided by tvanfosson in his answer
Rob Wells
+2  A: 

gmake uses the first "make" file found using the following order:

GNUmakefile, makefile, Makefile

Otherwise, they are semantically equivalent. GNU recommends only using GNUmakefile if you are using GNU extensions.

Source

tvanfosson
A: 

So. Didn't know about GNUmakefile. Thanks tvanfosson! (-;

Don't know about Gamecat's suggestion as that is the opposite of what I found when I tested.

Thanks florin, your suggestion is what I've found as well now.

makefile then Makefile (superceded by GNUmakefile it seems.)

cheers,

Rob

Rob Wells