From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 61002 invoked by alias); 18 Jun 2015 20:55:56 -0000 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 Received: (qmail 60991 invoked by uid 89); 18 Jun 2015 20:55:55 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.2 required=5.0 tests=BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RP_MATCHES_RCVD,SPF_PASS autolearn=ham version=3.3.2 X-HELO: resqmta-po-04v.sys.comcast.net Received: from resqmta-po-04v.sys.comcast.net (HELO resqmta-po-04v.sys.comcast.net) (96.114.154.163) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Thu, 18 Jun 2015 20:55:55 +0000 Received: from resomta-po-09v.sys.comcast.net ([96.114.154.233]) by resqmta-po-04v.sys.comcast.net with comcast id hwtm1q00D52QWKC01wvtwG; Thu, 18 Jun 2015 20:55:53 +0000 Received: from [IPv6:2001:558:6045:a4:40c6:7199:cd03:b02d] ([IPv6:2001:558:6045:a4:40c6:7199:cd03:b02d]) by resomta-po-09v.sys.comcast.net with comcast id hwvr1q00C2ztT3H01wvroM; Thu, 18 Jun 2015 20:55:52 +0000 Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) Subject: Re: libiberty TAGS From: Mike Stump In-Reply-To: <874mm4bvq7.fsf@igel.home> Date: Thu, 18 Jun 2015 22:48:00 -0000 Cc: GCC Patches Content-Transfer-Encoding: quoted-printable Message-Id: References: <17242213-EF29-4BDE-929B-AB383C8AA9B2@comcast.net> <874mm4bvq7.fsf@igel.home> To: Andreas Schwab X-IsSubscribed: yes X-SW-Source: 2015-06/txt/msg01311.txt.bz2 On Jun 18, 2015, at 1:35 PM, Andreas Schwab wrote: > Mike Stump writes: >=20 >> + cd $(srcdir) && etags `for i in $(CFILES); do echo $(srcdir)/$$i= ; done` >=20 > This doesn't work with a relative $(srcdir). Sure it does. I had tested with: srcdir =3D ../../gcc/libiberty which is a pretty typical relative srcdir, is it not? Anyway, I see your point. How about: diff --git a/libiberty/Makefile.in b/libiberty/Makefile.in index f06cc69..11e5ce6 100644 --- a/libiberty/Makefile.in +++ b/libiberty/Makefile.in @@ -409,8 +409,9 @@ stamp-noasandir: =20 etags tags: TAGS etags-subdir =20 +VPATH =3D @srcdir@ TAGS: $(CFILES) - etags `for i in $(CFILES); do echo $(srcdir)/$$i ; done` + cd $(srcdir) && etags $(CFILES) =20 # The standalone demangler (c++filt) has been moved to binutils. # But make this target work anyway for demangler hacking. Ok?