From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26959 invoked by alias); 23 Jan 2011 07:47:40 -0000 Received: (qmail 26838 invoked by uid 22791); 23 Jan 2011 07:47:33 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,SPF_SOFTFAIL X-Spam-Check-By: sourceware.org Received: from eggs.gnu.org (HELO eggs.gnu.org) (140.186.70.92) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 23 Jan 2011 05:34:19 +0000 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PgsaZ-0003vJ-J4 for gcc-patches@gcc.gnu.org; Sun, 23 Jan 2011 00:34:12 -0500 Received: from smtp-out.google.com ([216.239.44.51]:9149) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PgsaZ-0003vC-Dh for gcc-patches@gcc.gnu.org; Sun, 23 Jan 2011 00:34:11 -0500 Received: from wpaz9.hot.corp.google.com (wpaz9.hot.corp.google.com [172.24.198.73]) by smtp-out.google.com with ESMTP id p0N5O6DQ021582 for ; Sat, 22 Jan 2011 21:24:06 -0800 Received: from pvc21 (pvc21.prod.google.com [10.241.209.149]) by wpaz9.hot.corp.google.com with ESMTP id p0N5O4jh026471 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NOT) for ; Sat, 22 Jan 2011 21:24:05 -0800 Received: by pvc21 with SMTP id 21so657157pvc.17 for ; Sat, 22 Jan 2011 21:24:04 -0800 (PST) Received: by 10.142.47.10 with SMTP id u10mr2375720wfu.174.1295760244407; Sat, 22 Jan 2011 21:24:04 -0800 (PST) Received: from coign.google.com (adsl-71-133-8-30.dsl.pltn13.pacbell.net [71.133.8.30]) by mx.google.com with ESMTPS id x18sm15334350wfa.23.2011.01.22.21.24.02 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 22 Jan 2011 21:24:03 -0800 (PST) From: Ian Lance Taylor To: Ralf Wildenhues Cc: gcc-patches@gcc.gnu.org, gofrontend-dev@googlegroups.com Subject: Re: libgo patch committed: Add SPARC RTEMS specific file References: <20110122081418.GA31840@gmx.de> Date: Sun, 23 Jan 2011 11:27:00 -0000 In-Reply-To: <20110122081418.GA31840@gmx.de> (Ralf Wildenhues's message of "Sat, 22 Jan 2011 09:14:18 +0100") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-System-Of-Record: true X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-IsSubscribed: yes Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org X-SW-Source: 2011-01/txt/msg01608.txt.bz2 Message-ID: <20110123112700.JACE6ECb1aGtTEZR6YhOF6PxHk6Z1H4IoJF4HltLr9g@z> Ralf Wildenhues writes: > * Ian Lance Taylor wrote on Sat, Jan 22, 2011 at 03:01:40AM CET: >> If anybody knows of a simple way to use automake with files >> that may or may not exist, please let me know. I'd prefer to avoid >> configure tests since they separate the test and the use in a way that I >> find hard to maintain over time. > > Hmm, you can > > if COND > foo_SOURCES += bar.go > endif > > or you can > > foo_SOURCES = $(computed) > EXTRA_foo_SOURCES = bar1.go bar2.go bar3.go > > where $(computed) must come from the second set. > > If you want to use only Posix make, then you need to have at least some > bit of computation at configure time for this. Thanks, I know about those possibilities, but they aren't what I want, because they require me to determine whether the files exist in the configure script and to then use that determination in the Makefile. I don't want to split things up that way. I want to say something like foo_SOURCES = `test -f f.c && echo f.c` Ian