blob: ceb539d1b67abeb9f85aecc444b1cac900f30dcd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
# This makefile is used to convert Tcl manual pages into various
# alternate formats:
#
# Windows help file: 1. Build the winhelp target on Unix
# 2. Build the helpfile target on Windows
#
# HTML: 1. Build the html target on Unix
# SCCS: %Z% $Id: Makefile.in,v 1.1 1998/04/28 18:53:49 stanton Exp $
TCL = tcl@TCL_VERSION@@TCL_PATCH_LEVEL@
TK = tk@TCL_VERSION@@TCL_PATCH_LEVEL@
VER=@TCL_WIN_VERSION@
TCL_SOURCE = @srcdir@/..
TK_SOURCE = @srcdir@/../../$(TK)
TCL_DOCS = \
$(TCL_SOURCE)/doc/*.[13n]
TK_DOCS = \
$(TK_SOURCE)/doc/*.[13n]
TCLSH = $(TCL_SOURCE)/unix/tclsh
all: winhelp
winhelp: tcl.rtf
html: tcl$(VER).html
man2tcl: man2tcl.c
$(CC) $(CFLAGS) -o man2tcl man2tcl.c
tcl.rtf: man2help.tcl man2tcl $(TCL_DOCS) $(TK_DOCS)
$(TCLSH) man2help.tcl tcl $(VER) \
$(TCL_SOURCE)/doc $(TK_SOURCE)/doc
tcl$(VER).html: man2html.tcl man2tcl $(TCL_DOCS) $(TK_DOCS)
$(TCLSH) man2html.tcl tcl$(VER).html \
../.. ${TCL} ${TK}
clean:
-rm -f man2tcl *.o tcl$(VER).cnt tcl$(VER).rtf
helpfile:
hc31 tcl.hpj
mv tcl.hlp tcl$(VER).hlp
|