]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Avoid warning in "make tags".
authorEli Zaretskii <eliz@gnu.org>
Fri, 5 Apr 2013 13:24:24 +0000 (13:24 +0000)
committerEli Zaretskii <eliz@gnu.org>
Fri, 5 Apr 2013 13:24:24 +0000 (13:24 +0000)
* Makefile.in (TAGS): Avoid warning from etags when $GDB_NM_FILE is
empty.  See http://sourceware.org/ml/gdb-patches/2012-08/msg00504.html
and http://sourceware.org/ml/gdb-patches/2013-04/msg00055.html for
details of the problem.

gdb/ChangeLog
gdb/Makefile.in

index 30315af486042be307a619aec00255780280deb1..bca83b606a1fa6d72f68286915fddd2990741408 100644 (file)
@@ -1,3 +1,10 @@
+2013-04-05  Eli Zaretskii  <eliz@gnu.org>
+
+       * Makefile.in (TAGS): Avoid warning from etags when $GDB_NM_FILE is
+       empty.  See http://sourceware.org/ml/gdb-patches/2012-08/msg00504.html
+       and http://sourceware.org/ml/gdb-patches/2013-04/msg00055.html for
+       details of the problem.
+
 2013-04-04  Pedro Alves  <palves@redhat.com>
            Hui Zhu  <hui@codesourcery.com>
 
index 47b43382820886de7c17e3aa1eff77a5e2d3342e..c9ae6f6aa01602fdb6b09ed41277a1eec4ffe4ae 100644 (file)
@@ -1208,7 +1208,7 @@ gdb1$(EXEEXT): gdb$(EXEEXT)
 GDB_NM_FILE = @GDB_NM_FILE@
 TAGS: $(TAGFILES_NO_SRCDIR) $(TAGFILES_WITH_SRCDIR)
        @echo Making TAGS
-       @etags $(srcdir)/$(GDB_NM_FILE) \
+       etags `(test -n "$(GDB_NM_FILE)" && echo "$(srcdir)/$(GDB_NM_FILE)")` \
        `(for i in $(DEPFILES) $(TAGFILES_NO_SRCDIR); do \
                echo $(srcdir)/$$i ; \
        done ; for i in $(TAGFILES_WITH_SRCDIR); do \