sl@0
|
1 |
# This makefile is used to convert Tcl manual pages into various
|
sl@0
|
2 |
# alternate formats:
|
sl@0
|
3 |
#
|
sl@0
|
4 |
# Windows help file: 1. Build the winhelp target on Unix
|
sl@0
|
5 |
# 2. Build the helpfile target on Windows
|
sl@0
|
6 |
#
|
sl@0
|
7 |
# HTML: 1. Build the html target on Unix
|
sl@0
|
8 |
|
sl@0
|
9 |
# RCS: @(#) $Id: Makefile.in,v 1.9 2000/04/20 01:30:20 hobbs Exp $
|
sl@0
|
10 |
|
sl@0
|
11 |
TCL = tcl@TCL_VERSION@
|
sl@0
|
12 |
TK = tk@TCL_VERSION@
|
sl@0
|
13 |
VER = @TCL_WIN_VERSION@
|
sl@0
|
14 |
|
sl@0
|
15 |
TCL_BIN_DIR = @TCL_BIN_DIR@
|
sl@0
|
16 |
TCL_SOURCE = @TCL_SRC_DIR@
|
sl@0
|
17 |
TK_SOURCE = $(TCL_SOURCE)/../$(TK)
|
sl@0
|
18 |
PRO_SOURCE = $(TCL_SOURCE)/../pro
|
sl@0
|
19 |
ITCL_SOURCE = $(TCL_SOURCE)/../itcl3.1.0
|
sl@0
|
20 |
|
sl@0
|
21 |
TCL_DOCS = $(TCL_SOURCE)/doc/*.[13n]
|
sl@0
|
22 |
|
sl@0
|
23 |
TK_DOCS = $(TK_SOURCE)/doc/*.[13n]
|
sl@0
|
24 |
|
sl@0
|
25 |
PRO_DOCS = \
|
sl@0
|
26 |
$(PRO_SOURCE)/doc/man/procheck.1 \
|
sl@0
|
27 |
$(PRO_SOURCE)/doc/man/prodebug.1 \
|
sl@0
|
28 |
$(PRO_SOURCE)/doc/man/prodebug.n \
|
sl@0
|
29 |
$(PRO_SOURCE)/doc/man/prolicense.1
|
sl@0
|
30 |
|
sl@0
|
31 |
ITCL_DOCS = \
|
sl@0
|
32 |
$(ITCL_SOURCE)/itcl/doc/*.[13n] \
|
sl@0
|
33 |
$(ITCL_SOURCE)/itk/doc/*.[13n]
|
sl@0
|
34 |
|
sl@0
|
35 |
# $(ITCL_SOURCE)/iwidgets3.0.0/doc/*.[13n]
|
sl@0
|
36 |
|
sl@0
|
37 |
COREDOCS = $(TCL_DOCS) $(TK_DOCS)
|
sl@0
|
38 |
#PRODOCS = $(COREDOCS) $(PRO_DOCS) $(ITCL_DOCS)
|
sl@0
|
39 |
PRODOCS = $(COREDOCS) $(PRO_DOCS)
|
sl@0
|
40 |
TCLSH = $(TCL_BIN_DIR)/tclsh
|
sl@0
|
41 |
CC = @CC@
|
sl@0
|
42 |
|
sl@0
|
43 |
#
|
sl@0
|
44 |
# Targets
|
sl@0
|
45 |
#
|
sl@0
|
46 |
|
sl@0
|
47 |
all: core
|
sl@0
|
48 |
|
sl@0
|
49 |
pro:
|
sl@0
|
50 |
$(MAKE) DOCS="$(PRODOCS)" VER="" rtf
|
sl@0
|
51 |
|
sl@0
|
52 |
core:
|
sl@0
|
53 |
$(MAKE) DOCS="$(COREDOCS)" rtf
|
sl@0
|
54 |
|
sl@0
|
55 |
rtf: $(TCL_SOURCE)/tools/man2help.tcl man2tcl $(DOCS)
|
sl@0
|
56 |
LD_LIBRARY_PATH=$(TCL_BIN_DIR) \
|
sl@0
|
57 |
TCL_LIBRARY=$(TCL_SOURCE)/library \
|
sl@0
|
58 |
$(TCLSH) $(TCL_SOURCE)/tools/man2help.tcl tcl "$(VER)" $(DOCS)
|
sl@0
|
59 |
|
sl@0
|
60 |
winhelp: tcl.rtf
|
sl@0
|
61 |
|
sl@0
|
62 |
man2tcl: $(TCL_SOURCE)/tools/man2tcl.c
|
sl@0
|
63 |
$(CC) $(CFLAGS) -o man2tcl $(TCL_SOURCE)/tools/man2tcl.c
|
sl@0
|
64 |
|
sl@0
|
65 |
clean:
|
sl@0
|
66 |
-rm -f man2tcl *.o *.cnt *.rtf
|
sl@0
|
67 |
|
sl@0
|
68 |
helpfile:
|
sl@0
|
69 |
hcw /c /e tcl.hpj
|