From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: ludo@gnu.org (Ludovic =?iso-8859-1?Q?Court=E8s?=) Newsgroups: gmane.comp.sysutils.automake.bugs,gmane.lisp.guile.devel Subject: Re: mtime of installed files Date: Tue, 27 Jul 2010 10:18:39 +0200 Message-ID: <87zkxdxrq8.fsf@gnu.org> References: <87aapmt8w1.fsf@gnu.org> <20100720181416.GB3669@gmx.de> <874ofsztod.fsf@gnu.org> <20100721205359.GS4976@gmx.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: dough.gmane.org 1280218750 10616 80.91.229.12 (27 Jul 2010 08:19:10 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 27 Jul 2010 08:19:10 +0000 (UTC) Cc: guile-devel@gnu.org To: bug-automake@gnu.org Original-X-From: bug-automake-bounces+gnu-bug-automake=m.gmane.org@gnu.org Tue Jul 27 10:19:08 2010 Return-path: Envelope-to: gnu-bug-automake@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OdfNP-0004DI-Ru for gnu-bug-automake@m.gmane.org; Tue, 27 Jul 2010 10:19:04 +0200 Original-Received: from localhost ([127.0.0.1]:54554 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OdfNP-0001qy-46 for gnu-bug-automake@m.gmane.org; Tue, 27 Jul 2010 04:19:03 -0400 Original-Received: from [140.186.70.92] (port=48678 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OdfNM-0001qt-GP for bug-automake@gnu.org; Tue, 27 Jul 2010 04:19:01 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OdfNK-0000lQ-Ez for bug-automake@gnu.org; Tue, 27 Jul 2010 04:19:00 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:51433) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OdfNJ-0000l4-UJ for bug-automake@gnu.org; Tue, 27 Jul 2010 04:18:58 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1OdfNF-00042v-DN for bug-automake@gnu.org; Tue, 27 Jul 2010 10:18:53 +0200 Original-Received: from yoda.fdn.fr ([80.67.169.18]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 27 Jul 2010 10:18:53 +0200 Original-Received: from ludo by yoda.fdn.fr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 27 Jul 2010 10:18:53 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Followup-To: gmane.lisp.guile.devel Original-Lines: 42 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: yoda.fdn.fr X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 9 Thermidor an 218 de la =?iso-8859-1?Q?R=E9volution?= X-PGP-Key-ID: 0xEA52ECF4 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 83C4 F8E5 10A3 3B4C 5BEA D15D 77DD 95E2 EA52 ECF4 X-OS: x86_64-unknown-linux-gnu User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) Cancel-Lock: sha1:O7G6+DkoyV2BsBY0VPVXqpNdgds= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-automake@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports for Automake List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-automake-bounces+gnu-bug-automake=m.gmane.org@gnu.org Errors-To: bug-automake-bounces+gnu-bug-automake=m.gmane.org@gnu.org Xref: news.gmane.org gmane.comp.sysutils.automake.bugs:4952 gmane.lisp.guile.devel:10735 Archived-At: Hello! Ralf Wildenhues writes: > Now I need to ask in more detail: do you actually need "newer" or just > "not older"? Because if the latter, then you could just let the rule to > install $(nodist_foobar_DATA) depend on the rule to install > $(dist_foobar_SOURCES), the latter of which I assume you still need to > write, and hook to install-data-local. Or you do something like > mod_DATA = $(dist_foobar_SOURCES) > ccache_DATA = $(nodist_foobar_DATA) > > The install rules then still have internal names > (install-nodist_foobarDATA or install-ccacheDATA or so) but at least the > right thing happens, as long as the same $(INSTALL_DATA) command is used > in both cases. > > And if you need "newer" then you could "sleep 1" as last bit of your > hand-written rule to install $(dist_foobar_SOURCES), or let the > install-ccacheDATA depend on a guile-install-sleep helper rule which > itself depends on the install-nodist_foobarDATA rule or so. > However, that doesn't help you when "install -C" is used. > > Now, there's one more technical complication for adding the dependency: > automake will not put out its own install-ccacheDATA rule if you use it > as target anywhere (on the grounds that it's the only method to override > an automake-provided target), which you don't want here; you can trick > automake by assigning the name to some variable though: > guile_install_ccacheDATA = install-ccacheDATA > $(guile_install_ccacheDATA): install-modDATA For the record, this was fixed along these lines. The auto-compile mtime checks were also changed to checked for >= instead of ==: http://git.savannah.gnu.org/cgit/guile.git/commit/?id=fefd60ba4ba751712c45c95362bbc2f858890678 Ralf: can you formally state that the rule names (‘install-ccacheDATA’, etc.) are not going to change? :-) Thank you! Ludo’.