X-Recipient: archive-cygwin AT delorie DOT 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 AT cygwin DOT com From: Oleksandr Gavenko Subject: Re: modification time disorder: touch-related? Date: Fri, 29 Oct 2010 10:24:45 +0300 Lines: 45 Message-ID: References: <4CC9AE85 DOT 6090302 AT purdue DOT 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 AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , 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 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