diff options
author | mdejong <mdejong@noemail.net> | 2001-11-25 05:22:18 (GMT) |
---|---|---|
committer | mdejong <mdejong@noemail.net> | 2001-11-25 05:22:18 (GMT) |
commit | 0ae557c27af81bca5f17c658f73514eb1833c6f7 (patch) | |
tree | 52daa1c7ebcc6b77dd06a74ac52ff5e7e352ef1d /win/Makefile.in | |
parent | c319f443fc13fe539b3a27370eb08e52b812ccd6 (diff) | |
download | tcl-0ae557c27af81bca5f17c658f73514eb1833c6f7.zip tcl-0ae557c27af81bca5f17c658f73514eb1833c6f7.tar.gz tcl-0ae557c27af81bca5f17c658f73514eb1833c6f7.tar.bz2 |
* unix/Makefile.in: Add comments to better describe
TCL_EXE and when it should be available.
* win/Makefile.in: Add TCL_EXE variable to be used
by rules like `make genstubs`. Don't set TCL_LIBRARY
before running `make genstubs` since we will be running
with a tclsh from the PATH not the one we build.
FossilOrigin-Name: 1c51ca792513f9734c71ac92ea19ffc246394175
Diffstat (limited to 'win/Makefile.in')
-rw-r--r-- | win/Makefile.in | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/win/Makefile.in b/win/Makefile.in index 127f9df..80dcb28 100644 --- a/win/Makefile.in +++ b/win/Makefile.in @@ -5,7 +5,7 @@ # "autoconf" program (constructs like "@foo@" will get replaced in the # actual Makefile. # -# RCS: @(#) $Id: Makefile.in,v 1.57 2001/11/11 03:16:10 mdejong Exp $ +# RCS: @(#) $Id: Makefile.in,v 1.58 2001/11/25 05:22:19 mdejong Exp $ VERSION = @TCL_VERSION@ @@ -128,6 +128,13 @@ SHARED_LIBRARIES = $(TCL_DLL_FILE) $(TCL_STUB_LIB_FILE) \ $(DDE_DLL_FILE) $(REG_DLL_FILE) $(PIPE_DLL_FILE) STATIC_LIBRARIES = $(TCL_LIB_FILE) $(REG_LIB_FILE) $(DDE_LIB_FILE) +# TCL_EXE is the name of a tclsh executable that is available *BEFORE* +# running make for the first time. Certain build targets (make genstubs) +# need it to be available on the PATH. This executable should *NOT* be +# required just to do a normal build although it can be required to run +# make dist. +TCL_EXE = tclsh + TCLSH = tclsh$(VER)${EXESUFFIX} TCLTEST = tcltest${EXEEXT} CAT32 = cat32$(EXEEXT) @@ -581,8 +588,7 @@ $(GENERIC_DIR)/tclStubInit.c: $(GENERIC_DIR)/tcl.decls \ @echo "Warning: run \"make genstubs\" to regenerate tclStubInit.c" genstubs: - @TCL_LIBRARY="$(ROOT_DIR_NATIVE)/library"; export TCL_LIBRARY; \ - $(TCLSH) "$(ROOT_DIR_NATIVE)\tools\genStubs.tcl" \ + $(TCL_EXE) "$(ROOT_DIR_NATIVE)\tools\genStubs.tcl" \ "$(GENERIC_DIR_NATIVE)" \ "$(GENERIC_DIR_NATIVE)\tcl.decls" \ "$(GENERIC_DIR_NATIVE)\tclInt.decls" |