summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhobbs <hobbs>2002-04-18 22:22:23 (GMT)
committerhobbs <hobbs>2002-04-18 22:22:23 (GMT)
commit9a5fba649386e83dcc940a62c62a36920335de2a (patch)
tree4b17b2a58db136c565bee6a08d23c5356e69b5a4
parent362a547eb298a9b720b25c7fb7c30e126a977d28 (diff)
downloadtk-9a5fba649386e83dcc940a62c62a36920335de2a.zip
tk-9a5fba649386e83dcc940a62c62a36920335de2a.tar.gz
tk-9a5fba649386e83dcc940a62c62a36920335de2a.tar.bz2
updated dependencies for runtest and backported shell/gdb targets
-rw-r--r--win/Makefile.in22
1 files 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