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 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> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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: 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 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