delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/10/29/09:22:01

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-0.4 required=5.0 tests=AWL,BAYES_50,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,T_RP_MATCHES_RCVD,T_TO_NO_BRKTS_FREEMAIL
X-Spam-Check-By: sourceware.org
Message-ID: <4CCACA5B.9040007@aol.com>
Date: Fri, 29 Oct 2010 06:21:31 -0700
From: Tim Prince <n8tm AT aol DOT com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.12) Gecko/20101027 Thunderbird/3.1.6
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: modification time disorder: touch-related?
References: <4CC9AE85 DOT 6090302 AT purdue DOT edu> <iadsrk$62e$1 AT dough DOT gmane DOT org>
In-Reply-To: <iadsrk$62e$1@dough.gmane.org>
x-aol-global-disposition: G
X-AOL-SCOLL-SCORE: 0:2:318640544:93952408
X-AOL-SCOLL-URL_COUNT: 0
x-aol-sid: 3039ac1d29444ccaca5c600f
X-AOL-IP: 99.13.231.72
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

On 10/29/2010 12:24 AM, Oleksandr Gavenko wrote:
> On 28.10.2010 20:10, Robert McDougall wrote:
>> In running Make, I find targets being remade that shouldn't have to be
>> remade; being considered younger than the prerequisites from which
>> they've just been made.  It seems to happen especially with
>> prerequisites created by `touch`:  e.g.:
>>
>>      $ cat Makefile
>>      all : bar baz
>>
>>      bar baz : foo
>>              cp $<  $@
>>
>>      foo :
>>              touch $@
>>
>>      $ rm foo bar baz
>>      $ make
>>      touch foo
>>      cp foo bar
>>      cp foo baz
>>      $ make
>>      cp foo bar
>>      cp foo baz
>>      $ make
>>      cp foo bar
>>      cp foo baz
>>      $ make
>>      cp foo bar
>>      cp foo baz
>>      $ make
>>      cp foo bar
>>      cp foo baz
>>      $ make
>>      cp foo bar
>>      $ make
>>      make: Nothing to be done for `all'.
>>
>> Sleeping helps, but you have to sleep for quite a while; even 2 seconds
>> may not be enough:
>>
> do you build on FAT fs?
>
> It knows by lesser time precision (exactly 2 sec).
>
> Try example on NTFS.
>
If your files are on a server, of course, you need synchronization 
between the server and local system clocks, at least daily.

-- 
Tim Prince


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019