help-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Question


From: Paul D. Smith
Subject: Re: Question
Date: Wed, 19 Mar 2003 09:21:33 -0500

%% <address@hidden> writes:
 
  y> It is possible target is updated by previous rule and prerequisites
  y> is updated later, but they are almost in the same time.  Due to
  y> modified time of file can only keep in HH:MM:SS. It is possible
  y> prerequisites are modified later than target, but they are in the
  y> same second. Under this condition, make will think target is
  y> up-to-date.
 
  y> Is there any way for me to resolve this problem? For example, make
  y> will think up-to-date only target time is larger than prerequisites
  y> time.

I'm not sure exactly what your suggestion is here.

Traditionally the way people have addressed this problem is by using a
filesystem which keeps sub-second accuracy.  If your operating system
and your filesystem support it, GNU make will use the sub-second
timestamp when determining whether targets need to be rebuilt.

You didn't say which OS and OS version you were using, or which version
of GNU make, so I can't be more specific than that.


In the future GNU make will have the ability to use things other than
timestamps when comparing targets and prerequisites, but that is not the
near future.

-- 
-------------------------------------------------------------------------------
 Paul D. Smith <address@hidden>          Find some GNU make tips at:
 http://www.gnu.org                      http://make.paulandlesley.org
 "Please remain calm...I may be mad, but I am a professional." --Mad Scientist




reply via email to

[Prev in Thread] Current Thread [Next in Thread]