This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
libiberty TAGS
- From: Mike Stump <mikestump at comcast dot net>
- To: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Thu, 18 Jun 2015 13:28:32 -0700
- Subject: libiberty TAGS
- Authentication-results: sourceware.org; auth=none
I was making tags in libiberty and noticed it just didn’t work. :-(
This is one easy way to fix it.
Ok?
diff --git a/libiberty/Makefile.in b/libiberty/Makefile.in
index f06cc69..876fab2 100644
--- a/libiberty/Makefile.in
+++ b/libiberty/Makefile.in
@@ -409,8 +409,9 @@ stamp-noasandir:
etags tags: TAGS etags-subdir
+VPATH = @srcdir@
TAGS: $(CFILES)
- etags `for i in $(CFILES); do echo $(srcdir)/$$i ; done`
+ cd $(srcdir) && etags `for i in $(CFILES); do echo $(srcdir)/$$i ; done`
# The standalone demangler (c++filt) has been moved to binutils.
# But make this target work anyway for demangler hacking.