aboutsummaryrefslogtreecommitdiff
path: root/gdb/Makefile.in
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2000-03-27 06:42:08 +0000
committerAndrew Cagney <cagney@redhat.com>2000-03-27 06:42:08 +0000
commit2e022a79b49157aed1dad9039c75506e16ae3c6b (patch)
tree8bbb1870e961308f35f9a7873c91960061116039 /gdb/Makefile.in
parentbeb998c6a0eea93afd49f0f6a852675111bde6f7 (diff)
downloadgdb-2e022a79b49157aed1dad9039c75506e16ae3c6b.zip
gdb-2e022a79b49157aed1dad9039c75506e16ae3c6b.tar.gz
gdb-2e022a79b49157aed1dad9039c75506e16ae3c6b.tar.bz2
Re-fix ln -s gdbtk code. Mark ready for deletion post 5.0.
Diffstat (limited to 'gdb/Makefile.in')
-rw-r--r--gdb/Makefile.in24
1 files changed, 16 insertions, 8 deletions
diff --git a/gdb/Makefile.in b/gdb/Makefile.in
index 6046432..f77a7e3 100644
--- a/gdb/Makefile.in
+++ b/gdb/Makefile.in
@@ -1260,15 +1260,23 @@ findvar.o: findvar.c $(defs_h) $(gdbcore_h) $(inferior_h) target.h \
fork-child.o: fork-child.c gdb_wait.h $(defs_h) $(gdbcore_h) \
$(inferior_h) target.h terminal.h gdbthread.h gdb_string.h
+# FIXME: cagney/2000-03-27: Post 5.0 this link code can be removed.
+# It should now be possible to run GDBtk from the build directory
+# without the link in place.
all-gdbtk:
- if test "$(LN_S)" = "ln -s" -a ! -d gdbtcl/images ; then \
- echo linking ${srcdir}/gdbtk/library to gdbtcl ; \
- $(LN_S) ${srcdir}/gdbtk/library gdbtcl ; \
- else \
- echo Warning: Unable to link ${srcdir}/gdbtk/library to gdbtcl. ; \
- echo " " You will need to do a ; \
- echo " " make install before you are able to run the GUI. ; \
- fi
+ @if test ! -d gdbtcl/images ; then \
+ if test "$(LN_S)" = "ln -s" ; then \
+ echo linking ${srcdir}/gdbtk/library to gdbtcl ; \
+ rm -f gdbtcl ; \
+ test ! -r gdbtcl || exit 1 ; \
+ $(LN_S) ${srcdir}/gdbtk/library gdbtcl ; \
+ else \
+ echo "Warning:" ; \
+ echo "Unable to link ${srcdir}/gdbtk/library to gdbtcl." ; \
+ echo "You will need to do a \`make install' before you are" ; \
+ echo "able to run the GUI." ; \
+ fi ; \
+ else true ; fi
clean-gdbtk:
rm -f gdbtcl