diff options
Diffstat (limited to 'win/makefile.vc')
-rw-r--r-- | win/makefile.vc | 28 |
1 files changed, 24 insertions, 4 deletions
diff --git a/win/makefile.vc b/win/makefile.vc index 86b116a..56a5ee9 100644 --- a/win/makefile.vc +++ b/win/makefile.vc @@ -12,7 +12,7 @@ # Copyright (c) 2001-2002 David Gravereaux. # #------------------------------------------------------------------------------ -# RCS: @(#) $Id: makefile.vc,v 1.56 2002/03/29 01:27:50 davygrvy Exp $ +# RCS: @(#) $Id: makefile.vc,v 1.57 2002/03/29 03:55:24 davygrvy Exp $ #------------------------------------------------------------------------------ !if "$(MSVCDIR)" == "" @@ -582,6 +582,22 @@ genstubs: #--------------------------------------------------------------------- +# Generate the makefile depedancies. +#--------------------------------------------------------------------- + +depend: +!if !exist($(TCLSH)) + @echo Build tclsh first! +!else + $(TCLSH) $(TOOLSDIR:\=/)/mkdepend.tcl -vc32 -out:"$(OUT_DIR)\depend.mk" \ + -passthru:"-DBUILD_tcl $(TK_INCLUDES:"="")" $(GENERICDIR) \ + $(COMPATDIR) $(WINDIR) @<< +$(TKOBJS) +<< +!endif + + +#--------------------------------------------------------------------- # Regenerate the windows help files. #--------------------------------------------------------------------- @@ -614,7 +630,7 @@ $(HELPFILE): $(HELPRTF) $(BMP) [OPTIONS] COMPRESS=12 Hall Zeck LCID=0x409 0x0 0x0 ; English (United States) -TITLE=Tcl/Tk Reference Manual +TITLE=Tk Reference Manual BMROOT=. CNT=$(@B).cnt HLP=$(@B).hlp @@ -647,13 +663,17 @@ install-docs: @xcopy /i /y "$(HELPFILE)" "$(DOC_INSTALL_DIR)\" @xcopy /i /y "$(HELPCNT)" "$(DOC_INSTALL_DIR)\" $(TCLSH) << -puts "Installing Tk's helpfile contents into Tcl's ..." +puts "Installing $(PROJECT)'s helpfile contents into Tcl's ..." set f [open "$(DOC_INSTALL_DIR:\=/)/tcl$(VERSION).cnt" r] while {![eof $$f]} { - if {[regexp {:Include tk([0-9]{2}).cnt} [gets $$f] dummy ver]} { + if {[regexp {:Include $(PROJECT)([0-9]{2}).cnt} [gets $$f] dummy ver]} { if {$$ver == $(VERSION)} { puts "Already installed." exit + } else { + # do something here logical to remove (or replace) it. + puts "$$ver != $(VERSION), unfinished code path, die, die!" + exit 1 } } } |