LinuxQuestions.org
Help answer threads with 0 replies.
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 12-22-2010, 08:38 AM   #1
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 3,485

Rep: Reputation: 51
About make and Makefiles.


Hi:

I did 'make' and afterwards saw I should have modified something in the Makefile. I made the modification but, when I again ran make, it said "Nothing to be done for all". How can I force make to do again all the steps in the Makefile? Thanks for reading.
 
Old 12-22-2010, 09:06 AM   #2
Drakeo
Senior Member
 
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Slacko,
Posts: 3,072
Blog Entries: 3

Rep: Reputation: 323Reputation: 323Reputation: 323Reputation: 323
make clean, then make, make distclean to clear the config ,if it is part of the make file.

Last edited by Drakeo; 12-22-2010 at 09:08 AM.
 
1 members found this post helpful.
Old 12-22-2010, 09:24 AM   #3
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 3,485

Original Poster
Rep: Reputation: 51
Thanks a lot.
 
Old 12-22-2010, 09:28 AM   #4
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,396
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
And as for why this is...
The fundamental premise of make is that it uses rules (in the Makefile) to do two things:
1.) see if a product is older than the components from which it is built.
2.) execute the commands in each rule for the case when the product is older than its component parts

The original idea of make was probably to improve efficiency by avoiding rebuilding things which are already up-to-date, as compiling and linking can be time consuming and expensive. When computers were slower and more expensive, this was a very significant factor. Generally, developers create Makefile rules like 'clean' which remove all of the products of a build, and so when make is subsequently run, the rules to re-build all products will be invoked.

Today, make has evolved to be an extremely versatile tool with much more functionality, and people see it as a form of packaging. This is largely correct, especially when it is used in conjunction with the autotools components that are used to create Makefiles and configure scripts that generally work properly based on specific target and build-host architectures.

Understanding the basic purpose of developer tools is useful in solving problems related to their use.

--- rod.
 
1 members found this post helpful.
Old 12-22-2010, 03:11 PM   #5
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 3,485

Original Poster
Rep: Reputation: 51
Thank you for your post, theNbomr.
 
  


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
LXer: Beyond Makefiles: GNU make is For More Than Just Compiling LXer Syndicated Linux News 0 06-15-2010 02:20 PM
makefiles... DEF. Programming 2 04-20-2009 02:46 PM
makefiles wmoti Programming 5 09-21-2005 04:26 AM
Makefiles and Me dpottinger Linux - Newbie 5 07-25-2004 12:14 AM
Why makefiles parthi4u Programming 4 03-08-2003 04:14 PM


All times are GMT -5. The time now is 10:20 AM.

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