Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How often will a programmer be asked to write a makefile file? [closed]

Is makefile an advanced problem or a general problem for a programmer? For a C++ programmer, how often will he be asked to write a makefile file?

like image 210
skydoor Avatar asked Mar 31 '10 21:03

skydoor


3 Answers

Nobody ever writes a Makefile. They take an existing Makefile and modify it.

Just be thankful you don't have to deal with IMakefile. (For those of you who were lucky enough to never deal with this, or who have managed to forget, IMakefile was a file that was sort of a meta-Makefile for X Window System based projects which would be used to generate a Makefile that knew where you'd installed all your X Windows libraries and binaries. Needless to say, it sucked.)

like image 110
Paul Tomblin Avatar answered Nov 08 '22 01:11

Paul Tomblin


Setting up a meaningful build system is part of the craft. I'd expect any non-super-junior developer to be able to come up with a makefile.

like image 16
Nikolai Fetissov Avatar answered Nov 07 '22 23:11

Nikolai Fetissov


As often as he is asked to start on a brand new project, which is not similar to an existing project whose builds scripts can be adapted. That is not a good answer I guess, but in my experience there has always been some code/resources/build scripts that I can adapt.

On a different note, for any C++ programmer, it is important to learn how his code is built. Makefiles, Ant scripts etc are just the implementation mechanism. So I think it is important enough to learn.

like image 4
omermuhammed Avatar answered Nov 08 '22 00:11

omermuhammed