| 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 |
TCL = tcl@TCL_VERSION@ |
| 10 |
TK = tk@TCL_VERSION@ |
| 11 |
VER = @TCL_WIN_VERSION@ |
| 12 |
|
| 13 |
TCL_BIN_DIR = @TCL_BIN_DIR@ |
| 14 |
TCL_SOURCE = @TCL_SRC_DIR@ |
| 15 |
TK_SOURCE = $(TCL_SOURCE)/../$(TK) |
| 16 |
PRO_SOURCE = $(TCL_SOURCE)/../pro |
| 17 |
ITCL_SOURCE = $(TCL_SOURCE)/../itcl3.1.0 |
| 18 |
|
| 19 |
TCL_DOCS = $(TCL_SOURCE)/doc/*.[13n] |
| 20 |
|
| 21 |
TK_DOCS = $(TK_SOURCE)/doc/*.[13n] |
| 22 |
|
| 23 |
PRO_DOCS = \ |
| 24 |
$(PRO_SOURCE)/doc/man/procheck.1 \ |
| 25 |
$(PRO_SOURCE)/doc/man/prodebug.1 \ |
| 26 |
$(PRO_SOURCE)/doc/man/prodebug.n \ |
| 27 |
$(PRO_SOURCE)/doc/man/prolicense.1 |
| 28 |
|
| 29 |
ITCL_DOCS = \ |
| 30 |
$(ITCL_SOURCE)/itcl/doc/*.[13n] \ |
| 31 |
$(ITCL_SOURCE)/itk/doc/*.[13n] |
| 32 |
|
| 33 |
# $(ITCL_SOURCE)/iwidgets3.0.0/doc/*.[13n] |
| 34 |
|
| 35 |
COREDOCS = $(TCL_DOCS) $(TK_DOCS) |
| 36 |
#PRODOCS = $(COREDOCS) $(PRO_DOCS) $(ITCL_DOCS) |
| 37 |
PRODOCS = $(COREDOCS) $(PRO_DOCS) |
| 38 |
TCLSH = $(TCL_BIN_DIR)/tclsh |
| 39 |
CC = @CC@ |
| 40 |
|
| 41 |
# |
| 42 |
# Targets |
| 43 |
# |
| 44 |
|
| 45 |
all: core |
| 46 |
|
| 47 |
pro: |
| 48 |
$(MAKE) DOCS="$(PRODOCS)" VER="" rtf |
| 49 |
|
| 50 |
core: |
| 51 |
$(MAKE) DOCS="$(COREDOCS)" rtf |
| 52 |
|
| 53 |
rtf: $(TCL_SOURCE)/tools/man2help.tcl man2tcl $(DOCS) |
| 54 |
LD_LIBRARY_PATH=$(TCL_BIN_DIR) \ |
| 55 |
TCL_LIBRARY=$(TCL_SOURCE)/library \ |
| 56 |
$(TCLSH) -encoding utf-8 $(TCL_SOURCE)/tools/man2help.tcl tcl "$(VER)" $(DOCS) |
| 57 |
|
| 58 |
winhelp: tcl.rtf |
| 59 |
|
| 60 |
man2tcl: $(TCL_SOURCE)/tools/man2tcl.c |
| 61 |
$(CC) $(CFLAGS) -o man2tcl $(TCL_SOURCE)/tools/man2tcl.c |
| 62 |
|
| 63 |
clean: |
| 64 |
-rm -f man2tcl *.o *.cnt *.rtf |
| 65 |
|
| 66 |
helpfile: |
| 67 |
hcw /c /e tcl.hpj |