%% <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]> 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 _______________________________________________ Help-make mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/help-make
