summaryrefslogtreecommitdiffstats
path: root/tools/Makefile.in
diff options
context:
space:
mode:
authorstanton <stanton@noemail.net>1998-04-28 18:53:48 (GMT)
committerstanton <stanton@noemail.net>1998-04-28 18:53:48 (GMT)
commitd19fae36b1f2ac988900a55dcffdff1ac440f091 (patch)
treeb25713e341ff09e21fb10bf1c3cd36c481067e3c /tools/Makefile.in
parentf3d590299d8632bc7d324901d27250ed07a6f074 (diff)
downloadtcl-d19fae36b1f2ac988900a55dcffdff1ac440f091.zip
tcl-d19fae36b1f2ac988900a55dcffdff1ac440f091.tar.gz
tcl-d19fae36b1f2ac988900a55dcffdff1ac440f091.tar.bz2
Initial revision
FossilOrigin-Name: a027dd039f537abb27bfde56e602f0045c54a13d
Diffstat (limited to 'tools/Makefile.in')
-rw-r--r--tools/Makefile.in49
1 files changed, 49 insertions, 0 deletions
diff --git a/tools/Makefile.in b/tools/Makefile.in
new file mode 100644
index 0000000..ceb539d
--- /dev/null
+++ b/tools/Makefile.in
@@ -0,0 +1,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
+