From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11416 invoked by alias); 20 Dec 2002 05:57:08 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 11390 invoked from network); 20 Dec 2002 05:57:06 -0000 Received: from unknown (HELO mail.cs.umn.edu) (128.101.32.200) by 209.249.29.67 with SMTP; 20 Dec 2002 05:57:06 -0000 Received: from bose.cs.umn.edu (postfix@bose.cs.umn.edu [128.101.35.195]) by mail.cs.umn.edu (8.11.3/8.11.3) with ESMTP id gBK5uCX05952; Thu, 19 Dec 2002 23:56:12 -0600 (CST) Received: by bose.cs.umn.edu (Postfix, from userid 818) id EF3B631FB; Thu, 19 Dec 2002 23:56:11 -0600 (CST) To: Nathanael Nerode Cc: gcc-patches@gcc.gnu.org, dj@redhat.com, binutils@sources.redhat.com, gdb-patches@sources.redhat.com Subject: Re: (toplevel patch) Deal with multilib.out. Really. References: <20021220022225.GA2130@doctormoo> From: Raja R Harinath Date: Fri, 20 Dec 2002 01:35:00 -0000 In-Reply-To: <20021220022225.GA2130@doctormoo> (Nathanael Nerode's message of "Thu, 19 Dec 2002 21:22:25 -0500") Message-ID: User-Agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.3.50 (i686-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2002-12/txt/msg00577.txt.bz2 Hi, Nathanael Nerode writes: > +# Multilib.out tells target dirs what multilibs they should build. > +# There is really only one copy. We use the 'timestamp' method to > +# work around various timestamp bugs on some systems. > +# We use move-if-change so that it's only considered updated when it > +# actually changes, because it has to depend on a phony target. > +multilib.out: multilib.ts > + @true To round out this idiom, this should be multilib.out: multilib.ts @if test -f multilib.out; then :; \ else rm -f multilib.ts; $(MAKE) multilib.ts; fi So that rm multilib.out make works. Also, IIRC discussions on the automake list about the use of 'then :; else' form rather than 'test ! -f' -- some shells use the exit code of the 'if' test when they fall through a missing 'else' clause. - Hari -- Raja R Harinath ------------------------------ harinath@cs.umn.edu