Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I bought this great book by Richard Stallman and Roland McGrath. Its called GNU Make.
The book is over my head, but its fun to try to piece together what they're trying to teach.
There's a lot of emphasis in the book on "makefiles" but whenever I copy (by rote) the make command to compile something, there's no mention of makefiles of any kind.
Can anyone explain on a conceptual and very broad level what a makefile is and what its supposed to do in the context of the make command and the overall filesystem.
I'm not looking for the actual, discursive set of instructions about doing particular tasks. I can imitate those when I read them in the book. I'm hoping for some more basic historical (and yes basic) understanding of the life, the universe and everything with respect to make and makefiles.
PLEASE don't distress about the technical accuracy of your response to my question. I'm more interested in your perceptions and opinions on the subject at hand and hereby disclaim all reliance on any warranty you might make (heh-heh) on behalf of said information, whether express or implied, including the warranty of merchantability or fitness for a particular purpose and resolve to accept said information on an 'as is' basis.
As you are not looking for accurate response I'll try to give you one.
Makefile is generated by the script "configure" used when you compile programs from sources.
With the command "configure" you check first if the required libraries, some time programs, other tools necessary to the program you are going to compile are set up correctly in your system. Then "configure" generates the Makefile according to your system configuration. Makefile is a sort of "to do list" used by the command "make" to correctly compile the program generating the binary files.
The further command "make install" simply copies the file generated from the compilation to the proper destination directories
Not stricly technical but I hpoe this help.
Ciao
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.