This is the mail archive of the
binutils-cvs@sourceware.org
mailing list for the binutils project.
[binutils-gdb] (Makefiles): PATCH to include libcpp and libiberty in GCC etags
- From: Pedro Alves <palves at sourceware dot org>
- To: bfd-cvs at sourceware dot org, gdb-cvs at sourceware dot org
- Date: 28 Nov 2015 16:42:21 -0000
- Subject: [binutils-gdb] (Makefiles): PATCH to include libcpp and libiberty in GCC etags
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=1e924157387421d45ccf2aafd33a886abda05420
commit 1e924157387421d45ccf2aafd33a886abda05420
Author: Jason Merrill <jason@redhat.com>
Date: Sat Nov 28 16:39:30 2015 +0000
(Makefiles): PATCH to include libcpp and libiberty in GCC etags
gcc/c/
* Make-lang.in (c.tags): Also include libcpp TAGS.
gcc/cp/
* Make-lang.in (c++.tags): Also include libcpp TAGS.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@229504 138bc75d-0d04-0410-961f-82ee72b054a4
Diff:
---
libiberty/ChangeLog | 4 ++++
libiberty/Makefile.in | 8 +++-----
2 files changed, 7 insertions(+), 5 deletions(-)
diff --git a/libiberty/ChangeLog b/libiberty/ChangeLog
index 3025e99..3e3dab6 100644
--- a/libiberty/ChangeLog
+++ b/libiberty/ChangeLog
@@ -32,6 +32,10 @@
Android hosts.
* configure: Regenerate.
+2015-10-28 Jason Merrill <jason@redhat.com>
+
+ * Makefile.in (TAGS): Fix for separate build directory.
+
2015-10-18 Roland McGrath <roland@gnu.org>
Iain Sandoe <iain@codesourcery.com>
diff --git a/libiberty/Makefile.in b/libiberty/Makefile.in
index 7d7e2f4..9f7f70d 100644
--- a/libiberty/Makefile.in
+++ b/libiberty/Makefile.in
@@ -406,12 +406,10 @@ stamp-noasandir:
else true; fi
touch stamp-noasandir
-.PHONY: all etags tags ls clean stage1 stage2
+.PHONY: all etags tags TAGS ls clean stage1 stage2
-etags tags: TAGS etags-subdir
-
-TAGS: $(CFILES)
- etags `for i in $(CFILES); do echo $(srcdir)/$$i ; done`
+etags tags TAGS: etags-subdir
+ cd $(srcdir); etags $(CFILES)
# The standalone demangler (c++filt) has been moved to binutils.
# But make this target work anyway for demangler hacking.