help-make
[Top][All Lists]
Advanced

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

RE: updating target at the end of recipe, after updating prerequisites,


From: Paul Smith
Subject: RE: updating target at the end of recipe, after updating prerequisites, might not work?
Date: Mon, 14 Nov 2011 02:16:00 -0500

On Sun, 2011-11-13 at 19:50 -0800, Mark Galeck (CW) wrote:
> How do make gurus deal with this problem Paul?

If you want to use sub-second timestamps you must find tools that
support them, and avoid using tools that don't.

> For me, echo foo > xyz does not _always_ set modify timestamp for xyz
> to sub-second resolution.  In some directories, it does, but where I
> care, it does not.  Must be mounted filesystem-dependency.  

Of course.  Setting and storing the mod time on a file is up to the
filesystem.  Some filesystems support timestamps with granularity of 1
second.  Some support finer granularity (sub-second timestamps).  If the
filesystem doesn't support it then there's no way you will ever see it.
You can have (at least on UNIX systems) lots of different filesystem
types mounted on the your system at the same time and they might have
very different timestamp support capabilities.

-- 
-------------------------------------------------------------------------------
 Paul D. Smith <address@hidden>          Find some GNU make tips at:
 http://www.gnu.org                      http://make.mad-scientist.net
 "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]