LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 01-17-2004, 04:44 PM   #1
mjewell
Member
 
Registered: Jan 2004
Location: Missoula, MT
Distribution: most recently, slackware
Posts: 49

Rep: Reputation: 15
how does a "makefile" relate to the make command?


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.

Color me newbie. I'm curious.
 
Old 01-17-2004, 04:47 PM   #2
mjewell
Member
 
Registered: Jan 2004
Location: Missoula, MT
Distribution: most recently, slackware
Posts: 49

Original Poster
Rep: Reputation: 15
PS

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.

In other words, feel free to riff and rant.
 
Old 01-17-2004, 07:17 PM   #3
urka58
Member
 
Registered: Nov 2003
Distribution: slackware 14
Posts: 540

Rep: Reputation: 32
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
 
Old 01-17-2004, 09:27 PM   #4
mjewell
Member
 
Registered: Jan 2004
Location: Missoula, MT
Distribution: most recently, slackware
Posts: 49

Original Poster
Rep: Reputation: 15
That's fantastic! Thanks so much. That sort of explanation is so much more helpful to me than just the bare commands.

Hope I can return the favor some day.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
So many errors when I typed the "make" and "make install" command Niceman2005 Linux - Software 23 07-22-2009 03:33 PM
error on "make"command; ralink 2500 driver jimbrook Linux - Wireless Networking 2 05-23-2005 11:58 PM
Ndiswrapper install failure - LBA-Linux "make" command fails petteril Linux - Wireless Networking 1 04-23-2005 09:22 AM
How to install "make" command from rpm on cd 2 - red hat linux 7.0 ZARGON Linux - Newbie 2 08-31-2004 11:53 AM
"make" command won't work in Fedora...installing Nvidia Ethernet drv's help Ge|atinousFury Linux - Hardware 24 01-22-2004 05:42 PM


All times are GMT -5. The time now is 04:16 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration