LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 02-03-2013, 08:36 AM   #1
uma.g
LQ Newbie
 
Registered: Feb 2013
Posts: 1

Rep: Reputation: Disabled
Post explanation of a code


I want to the implementation of the code 'make config' in fedora
 
Old 02-03-2013, 11:02 AM   #2
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 2,404

Rep: Reputation: Disabled
It's a bit difficult to understand exactly what you're asking.

The make command is used to compile source code. make will look for a file called "Makefile" in the current directory, and follow the instructions in that file.

make config tells make to look for instructions for building the target "config". make does not know what "config" is, and will consult the Makefile for further instructions.

It's impossible to tell what (if anything) that command will do without knowing exactly what source code you're running make to build.
 
Old 02-03-2013, 11:23 AM   #3
johnsfine
LQ Guru
 
Registered: Dec 2007
Distribution: Centos
Posts: 5,286

Rep: Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181
Quote:
Originally Posted by uma.g View Post
I want to the implementation of the code 'make config' in fedora
That may depend on your definition of the word "implementation":

make is a program. You can get the source code of that program and study it and see the real implementation of that command. But I'm pretty sure you won't understand it.

But make is a program that interpretively executes a "program" (a set of instructions) written in a special purpose language. The implementation you probably want to see is those instructions, not the implementation of make itself.

You'll need to read a lot of documentation about make in order to understand the language those instructions are in. Then (as Ser Olmy already explained) those instructions are in a file named Makefile and "config" identifies the final such instruction that make is being told to process. A characteristic of this language is that each instruction effectively identifies other instructions that must be executed before it. So identifying "config" as the last instruction effectively tells make all the instructions it needs to execute.
 
  


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
[SOLVED] explanation of wpan code assassin91 Linux - Newbie 2 03-15-2012 02:29 AM
awk code explanation pete1234 Programming 2 10-14-2006 08:05 PM
Code explanation ... ? dbee Linux - Software 1 12-17-2005 02:06 AM
fat fs code explanation ramya272 Programming 0 03-06-2004 10:55 AM
Pascal Code Explanation Gerardoj Programming 1 09-25-2003 02:15 AM


All times are GMT -5. The time now is 06:36 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