diff mbox

libiberty TAGS

Message ID 17242213-EF29-4BDE-929B-AB383C8AA9B2@comcast.net
State New
Headers show

Commit Message

Mike Stump June 18, 2015, 8:28 p.m. UTC
I was making tags in libiberty and noticed it just didn’t work.  :-(

This is one easy way to fix it.

Ok?

Comments

Andreas Schwab June 18, 2015, 8:35 p.m. UTC | #1
Mike Stump <mikestump@comcast.net> writes:

> +       cd $(srcdir) && etags `for i in $(CFILES); do echo $(srcdir)/$$i ; done`

This doesn't work with a relative $(srcdir).

Andreas.
diff mbox

Patch

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.