winhelp and some makefile.vc lint
Closed / Fixed217887ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 00:45:27
OriginalBugID: 2388 RFE
Version: 8.2b1
SubmitDate: '1999-07-19'
LastModified: '1999-08-01'
Severity: LOW
Status: Closed
Submitter: techsupp
ChangedBy: hobbs
RelatedBugIDs: 2390
OS: Windows NT
OSVersion: 4.0 sp5
Machine: X86
FixedDate: '2000-10-25'
ClosedDate: '1999-08-01'
Name:
David Gravereaux
CVS:
RCS: @(#) $Id: makefile.vc,v 1.38 1999/07/13 22:23:45 redman Exp $
DesiredBehavior:
I added a winhelp target to the VC makefile. The tools/man2help.tcl
conversion script has a few anomalies, and does affect the help compiler
as it spits up some errors. Not a bad first attempt though.
As the Tcl and Tk makefiles are 2 seperate builds and the helpfile is
singular, it would be a nice feature to use the patching ability of
combining contents files pointing to multiple .hlp files. This could be
a feature for extension authors who could add their contents to the
master Tcl contents files at install time.
It would be nice to see the manual files out of the troff (UNIX) format
and into the proposed TMML format (http://www.hwaci.com/sw/tcldoc/).
The man->rtf conversion is NOT error free.
Also, removed all the "set LIB=..." from the compiler commands because
nmake will use the makefile macro "LIB" (if set) in the environment of
spawned tools. Therefore, setting lib at each tool invokation is
unneeded. (just set it once). This also helps us poor souls who have
the Platform SDK, and don't like editing the makefile to change the LIB
setting in 11 places. Once will be just fine, thank you.
Patch:
Index: makefile.vc
===================================================================
RCS file: /cvsroot/tcl/win/makefile.vc,v
retrieving revision 1.38
diff -c -r1.38 makefile.vc
*** makefile.vc1999/07/13 22:23:451.38
--- makefile.vc1999/07/18 02:06:46
***************
*** 38,43 ****
--- 38,44 ----
TOOLS32= c:\program files\devstudio\vc
TOOLS32_rc= c:\program files\devstudio\sharedide
TOOLS16= c:\msvc
+ LIB = $(TOOLS32)\lib
INSTALLDIR= c:\program files\Tcl
***************
*** 210,216 ****
cc32= "$(TOOLS32)\bin\cl.exe"
link32= "$(TOOLS32)\bin\link.exe"
rc32= "$(TOOLS32_rc)\bin\rc.exe"
! include32= -I"$(TOOLS32)\include"
lib32= "$(TOOLS32)\bin\lib.exe"
cc16= "$(TOOLS16)\bin\cl.exe"
--- 211,218 ----
cc32= "$(TOOLS32)\bin\cl.exe"
link32= "$(TOOLS32)\bin\link.exe"
rc32= "$(TOOLS32_rc)\bin\rc.exe"
! include32=
! #-I"$(TOOLS32)\include"
lib32= "$(TOOLS32)\bin\lib.exe"
cc16= "$(TOOLS16)\bin\cl.exe"
***************
*** 331,344 ****
$(DUMPEXTS): $(WINDIR)\winDumpExts.c
$(cc32) $(CON_CFLAGS) -Fo$(TMPDIR)\ $?
- set LIB="$(TOOLS32)\lib"
$(link32) $(ldebug) $(conlflags) $(guilibs) -out:$@ $(TMPDIR)\winDumpExts.obj
$(TCLLIB): $(TCLDLL)
$(TCLDLL): $(TCLOBJS) $(TMPDIR)\tcl.def $(TMPDIR)\tcl.res
- set LIB="$(TOOLS32)\lib"
$(link32) $(ldebug) $(dlllflags) -def:$(TMPDIR)\tcl.def -out:$@ $(TMPDIR)\tcl.res $(guilibsdll) @<<
$(TCLOBJS)
--- 333,344 ----
***************
*** 350,373 ****
$(TCLPLUGINLIB): $(TCLPLUGINDLL)
$(TCLPLUGINDLL): $(TCLOBJS) $(TMPDIR)\plugin.def $(TMPDIR)\tcl.res
- set LIB="$(TOOLS32)\lib"
$(link32) $(ldebug) $(dlllflags) -def:$(TMPDIR)\plugin.def -out:$@ $(TMPDIR)\tcl.res $(guilibsdll) @<<
$(TCLOBJS)
<<
$(TCLSH): $(TCLSHOBJS) $(TCLLIB) $(TMPDIR)\tclsh.res
- set LIB="$(TOOLS32)\lib"
$(link32) $(ldebug) $(conlflags) $(TMPDIR)\tclsh.res -stack:2300000 -out:$@ $(conlibsdll) $(TCLLIB) $(TCLSHOBJS)
$(TCLSHP): $(TCLSHOBJS) $(TCLPLUGINLIB) $(TMPDIR)\tclsh.res
- set LIB=$(TOOLS32)\lib
$(link32) $(ldebug) $(conlflags) $(TMPDIR)\tclsh.res -stack:2300000 -out:$@ $(conlibsdll) $(TCLPLUGINLIB) $(TCLSHOBJS)
$(TCLTEST): $(TCLTESTOBJS) $(TCLLIB) $(TMPDIR)\tclsh.res
- set LIB="$(TOOLS32)\lib"
$(link32) $(ldebug) $(conlflags) $(TMPDIR)\tclsh.res -stack:2300000 -out:$@ $(conlibsdll) $(TCLLIB) $(TCLTESTOBJS)
--- 350,369 ----
***************
*** 396,422 ****
$(TCLPIPEDLL): $(WINDIR)\stub16.c
$(cc32) $(CON_CFLAGS) -Fo$(TMPDIR)\ $(WINDIR)\stub16.c
- set LIB="$(TOOLS32)\lib"
$(link32) $(ldebug) $(conlflags) -out:$@ $(TMPDIR)\stub16.obj $(guilibs)
$(TCLDDEDLL): $(TMPDIR)\tclWinDde.obj $(TCLSTUBLIB)
- set LIB="$(TOOLS32)\lib"
$(link32) $(ldebug) $(dlllflags) -out:$@ $(TMPDIR)\tclWinDde.obj $(conlibsdll) $(TCLSTUBLIB)
$(TCLREGDLL): $(TMPDIR)\tclWinReg.obj $(TCLSTUBLIB)
- set LIB="$(TOOLS32)\lib"
$(link32) $(ldebug) $(dlllflags) -out:$@ $(TMPDIR)\tclWinReg.obj $(conlibsdll) $(TCLSTUBLIB)
$(CAT32): $(WINDIR)\cat.c
$(cc32) $(CON_CFLAGS) -Fo$(TMPDIR)\ $?
- set LIB="$(TOOLS32)\lib"
$(link32) $(conlflags) -out:$@ -stack:16384 $(TMPDIR)\cat.obj $(conlibs)
$(CAT16): $(WINDIR)\cat.c
if exist $(cc16) $(cc16) $(DOS_CFLAGS) -Fo$(TMPDIR)\ $?
- set LIB=$(TOOLS16)\lib
if exist $(cc16) $(link16) /NOLOGO /ONERROR:NOEXE /NOI /STACK:16384 $(TMPDIR)\cat.obj,$@,nul,llibce.lib,nul
--- 392,413 ----
***************
*** 494,499 ****
--- 485,513 ----
genstubs:
tclsh$(VERSION) $(ROOT)\tools\genStubs.tcl $(GENERICDIR) $(GENERICDIR)\tcl.decls $(GENERICDIR)\tclInt.decls
+
+ #
+ # Regenerate the windows help files.
+ #
+
+ TCLTOOLS = $(ROOT)/tools
+ MAN2TCL = $(TCLTOOLS)/man2tcl
+ TCLRTF = $(TCLTOOLS)/tcl.rtf
+ TCLHPJ = $(TCLTOOLS)/tcl.hpj
+ MAN2HELP = $(TCLTOOLS)/man2help.tcl
+ HCRTF = $(TOOLS32)/bin/hcrtf.exe
+
+ winhelp : $(TCLRTF)
+ cd $(TCLTOOLS)
+ start /wait $(HCRTF) -xn $(TCLHPJ)
+
+ $(MAN2TCL).exe : $(MAN2TCL).obj
+ cd $(TCLTOOLS)
+ $(cc32) /nologo /G4 /ML /O2 $(MAN2TCL).c
+
+ $(TCLRTF) : $(MAN2TCL).exe $(TCLSH)
+ cd $(TCLTOOLS)
+ $(TCLSH) $(MAN2HELP) $(NAMEPREFIX) $(VERSION) $(ROOT)/doc ../../tk8.2b1/doc
#
# Special case object file targets
Index: tcl.hpj
===================================================================
RCS file: /cvsroot/tcl/tools/tcl.hpj,v
retrieving revision 1.4
diff -c -r1.4 tcl.hpj
*** tcl.hpj1999/02/05 03:12:501.4
--- tcl.hpj1999/07/18 02:11:10
***************
*** 1,19 ****
! ; This file is maintained by HCW. Do not modify this file directly.
!
! [OPTIONS]
! HCW=0
! LCID=0x409 0x0 0x0 ;English (United States)
! REPORT=Yes
! TITLE=Tcl/Tk Reference Manual
! CNT=tcl.cnt
! COPYRIGHT=Copyright © 1998 Scriptics Corporation
! HLP=tcl.hlp
!
! [FILES]
! tcl.rtf
!
! [WINDOWS]
! main="Tcl/Tk Reference Manual",,0
!
! [CONFIG]
! BrowseButtons()
--- 1,20 ----
! ; This file is maintained by HCW. Do not modify this file directly.
!
! [OPTIONS]
! COMPRESS=12 Hall Zeck
! ERRORLOG=tcl82_hlp_err.log
! LCID=0x409 0x0 0x0 ; English (United States)
! REPORT=Yes
! TITLE=Tcl/Tk Reference Manual
! CNT=tcl82.cnt
! COPYRIGHT=Copyright © 1998 Scriptics Corporation
! HLP=tcl82.hlp
!
! [FILES]
! tcl.rtf
!
! [WINDOWS]
! main="Tcl/Tk Reference Manual",,0
!
! [CONFIG]
! BrowseButtons()
PatchFiles:
win/makefile.vc tools/tcl.hpj
welch Closed ticket [217887ffff].
[History diff]2000-10-26 08:09:11
dgp Ticket [217887ffff]: 3 changes
[History diff]2001-04-14 01:42:22
Log in (anonymous is fine) to add a comment.