aboutsummaryrefslogtreecommitdiff
path: root/gdb/Makefile.in
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2013-04-05 13:24:24 +0000
committerEli Zaretskii <eliz@gnu.org>2013-04-05 13:24:24 +0000
commit9025569e3a3d4c8df3c3413cab944a7d74df3582 (patch)
treeeb37493303bee82fb8b8d610dbbd60e4ac2fb761 /gdb/Makefile.in
parentc69ba956e3ea3f41672cd3bf4d9d27f91d6849c0 (diff)
downloadgdb-9025569e3a3d4c8df3c3413cab944a7d74df3582.zip
gdb-9025569e3a3d4c8df3c3413cab944a7d74df3582.tar.gz
gdb-9025569e3a3d4c8df3c3413cab944a7d74df3582.tar.bz2
Avoid warning in "make tags".
* 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.
Diffstat (limited to 'gdb/Makefile.in')
-rw-r--r--gdb/Makefile.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/Makefile.in b/gdb/Makefile.in
index 47b4338..c9ae6f6 100644
--- a/gdb/Makefile.in
+++ b/gdb/Makefile.in
@@ -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 \