The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > High Level Programming
Google UNIX.COM


High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Makefile very simple question. marcintom High Level Programming 1 05-04-2008 08:20 AM
Seems the Shell Script is very tough prince_of_focus Shell Programming and Scripting 1 07-18-2006 02:05 PM
Tough Questoin lets see if any of you can answer it derekmpage UNIX for Dummies Questions & Answers 1 09-13-2005 07:57 AM
Makefile question hc29 UNIX for Dummies Questions & Answers 1 07-13-2004 03:52 AM
Tough question - interactive prompts peter.herlihy Shell Programming and Scripting 2 02-21-2002 09:45 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 06-04-2007
Registered User
 

Join Date: Jun 2007
Posts: 1
Tough makefile question

At my company, we build some stuff using a makefile. While the makefile script is running, a developer may check in a newer version of a source file. The problem is, when we next run the make command, the target file isn't rebuilt, because the date of the target is after the dependency.

Any ideas to get this to work without rebuilding everything every time?
Reply With Quote
Forum Sponsor
  #2  
Old 06-04-2007
Registered User
 

Join Date: Jan 2007
Posts: 2,965
After the build is complete, set the timestamp of all files used and generated to the exact time the build was started.

Then when you do a cvs update or whatever newer files will be shown as newer.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 05:14 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0