summaryrefslogtreecommitdiffstats
path: root/unix
diff options
context:
space:
mode:
authormdejong <mdejong>2001-06-27 02:06:13 (GMT)
committermdejong <mdejong>2001-06-27 02:06:13 (GMT)
commit8ae75ea378b8200c7cf3444954fd5ba1c911a7c0 (patch)
treeb554970465d2c9a1cc3dee5cdc116eee46e51d0e /unix
parent0cc892f6204823a32a4e673b38d8927a42c7ffb8 (diff)
downloadtk-8ae75ea378b8200c7cf3444954fd5ba1c911a7c0.zip
tk-8ae75ea378b8200c7cf3444954fd5ba1c911a7c0.tar.gz
tk-8ae75ea378b8200c7cf3444954fd5ba1c911a7c0.tar.bz2
* unix/Makefile.in:
* win/Makefile.in: Add `make shell` target. This target will set the proper env vars before invoking wish from the build directory.
Diffstat (limited to 'unix')
-rw-r--r--unix/Makefile.in14
1 files changed, 13 insertions, 1 deletions
diff --git a/unix/Makefile.in b/unix/Makefile.in
index 489738e..0719826 100644
--- a/unix/Makefile.in
+++ b/unix/Makefile.in
@@ -5,7 +5,7 @@
# "autoconf" program (constructs like "@foo@" will get replaced in the
# actual Makefile.
#
-# RCS: @(#) $Id: Makefile.in,v 1.51 2001/06/22 23:59:48 mdejong Exp $
+# RCS: @(#) $Id: Makefile.in,v 1.52 2001/06/27 02:06:13 mdejong Exp $
# Current Tk version; used in various names.
@@ -454,6 +454,18 @@ runtest: tktest
TK_LIBRARY=@TK_SRC_DIR@/library; export TK_LIBRARY; \
./tktest
+# This target can be used to run wish from the build directory
+# via `make shell` or `make shell SCRIPT=/tmp/foo.tcl`
+shell: wish
+ LD_LIBRARY_PATH=`pwd`:${TCL_BIN_DIR}:${LD_LIBRARY_PATH}; \
+ export LD_LIBRARY_PATH; \
+ LIBPATH=`pwd`:${TCL_BIN_DIR}:${LIBPATH}; export LIBPATH; \
+ SHLIB_PATH=`pwd`:${TCL_BIN_DIR}:${SHLIB_PATH}; \
+ export SHLIB_PATH; \
+ TCL_LIBRARY=@TCL_SRC_DIR@/library; export TCL_LIBRARY; \
+ TK_LIBRARY=@TK_SRC_DIR@/library; export TK_LIBRARY; \
+ ./wish $(SCRIPT)
+
install: all install-binaries install-libraries install-demos install-doc
# Note: before running ranlib below, must cd to target directory because