From 9a5fba649386e83dcc940a62c62a36920335de2a Mon Sep 17 00:00:00 2001 From: hobbs Date: Thu, 18 Apr 2002 22:22:23 +0000 Subject: updated dependencies for runtest and backported shell/gdb targets --- win/Makefile.in | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/win/Makefile.in b/win/Makefile.in index e979349..8988d5c 100644 --- a/win/Makefile.in +++ b/win/Makefile.in @@ -4,7 +4,7 @@ # "autoconf" program (constructs like "@foo@" will get replaced in the # actual Makefile. # -# RCS: @(#) $Id: Makefile.in,v 1.24.2.7 2001/10/03 22:04:53 hobbs Exp $ +# RCS: @(#) $Id: Makefile.in,v 1.24.2.8 2002/04/18 22:22:23 hobbs Exp $ TCLVERSION = @TCL_VERSION@ VERSION = @TK_VERSION@ @@ -383,11 +383,27 @@ test: binaries $(TKTEST) ./$(TKTEST) "$(ROOT_DIR_NATIVE)/tests/all.tcl" $(TESTFLAGS) \ | ./$(CAT32) -runtest: $(TKTEST) +runtest: binaries $(TKTEST) @TCL_LIBRARY="$(TCL_SRC_DIR_NATIVE)/library"; export TCL_LIBRARY; \ TK_LIBRARY="$(ROOT_DIR_NATIVE)/library"; export TK_LIBRARY; \ PATH="$(PATH):$(TCL_BIN_DIR)"; export PATH; \ - ./$(TKTEST) + ./$(TKTEST) $(TESTFLAGS) $(SCRIPT) + +# This target can be used to run wish from the build directory +# via `make shell` or `make shell SCRIPT=foo.tcl` +shell: binaries + @TCL_LIBRARY="$(TCL_SRC_DIR_NATIVE)/library"; export TCL_LIBRARY; \ + TK_LIBRARY="$(ROOT_DIR_NATIVE)/library"; export TK_LIBRARY; \ + PATH="$(PATH):$(TCL_BIN_DIR)"; export PATH; \ + ./$(WISH) $(SCRIPT) + +# This target can be used to run wish inside either gdb or insight +gdb: binaries + @echo "set env TCL_LIBRARY=$(TCL_SRC_DIR_NATIVE)/library" > gdb.run + @echo "set env TK_LIBRARY=$(ROOT_DIR_NATIVE)/library" >> gdb.run + PATH="$(PATH):$(TCL_BIN_DIR)"; export PATH; \ + gdb ./$(WISH) --command=gdb.run + rm gdb.run install: all install-binaries install-libraries install-doc install-demos -- cgit v0.12