+Mon Mar 27 16:26:11 2000 Andrew Cagney <cagney@b1.cygnus.com>
+
+ * Makefile.in (all-gdbtk): Check for an existing link/directory.
+ Re-format warning message. Document that post 5.0 this can be
+ deleted.
+
Mon Mar 27 14:46:37 2000 Andrew Cagney <cagney@b1.cygnus.com>
* ChangeLog: Revert whitespace changes.
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