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