X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=1.2 required=5.0	tests=AWL,BAYES_50,RCVD_NUMERIC_HELO,SPF_HELO_PASS,T_RP_MATCHES_RCVD
X-Spam-Check-By: sourceware.org
To: cygwin@cygwin.com
From: Oleksandr Gavenko <gavenko@bifit.com.ua>
Subject: Re: modification time disorder: touch-related?
Date: Fri, 29 Oct 2010 10:24:45 +0300
Lines: 45
Message-ID: <iadsrk$62e$1@dough.gmane.org>
References: <4CC9AE85.6090302@purdue.edu>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.12) Gecko/20101027 Thunderbird/3.1.6
In-Reply-To: <4CC9AE85.6090302@purdue.edu>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

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.


--
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

