From 120a6051678f638a2c3ffefc6f5e0817d10d7fbb Mon Sep 17 00:00:00 2001
From: Pat Thoyts <patthoyts@users.sourceforge.net>
Date: Thu, 17 Jun 2004 19:45:25 +0000
Subject: [PATCH] Added doc building

---
 win/makefile.vc | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/win/makefile.vc b/win/makefile.vc
index c3b1c9c..dbd60a7 100644
--- a/win/makefile.vc
+++ b/win/makefile.vc
@@ -292,6 +292,7 @@ TESTFLAGS = $(TESTFLAGS) -file $(TESTPAT)
 
 all:	    setup $(PROJECT)
 $(PROJECT): setup $(PRJLIB)
+doc:        setup $(DOCDIR)\winsend.html
 install:    install-binaries install-libraries install-docs
 
 !if "$(OS)" == "Windows_NT"  || "$(MSVCDIR)" == "IDE"
@@ -375,6 +376,9 @@ $<
 !endif
 	$<
 
+{$(DOCDIR)}.man{$(DOCDIR)}.html::
+	mpexpand html $< $@
+
 .SUFFIXES:
 .SUFFIXES:.c .rc
 
@@ -393,10 +397,12 @@ install-binaries:
 
 install-libraries:
 	@echo Installing library files to '$(SCRIPT_INSTALL_DIR)'
-	@if exist $(LIBDIR) $(CPY) $(LIBDIR)\*.tcl $(SCRIPT_INSTALL_DIR) >NUL
+	@if exist $(LIBDIR) $(CPY) $(LIBDIR)\*.tcl "$(SCRIPT_INSTALL_DIR)" >NUL
 	@echo cd "$(SCRIPT_INSTALL_DIR:\=/)" ; pkg_mkIndex . | $(TCLSH)
 
 install-docs:
+	@echo Installing documentation files to '$(DOC_INSTALL_DIR)'
+	@if exist $(DOCDIR) $(CPY) $(DOCDIR)\*.html "$(DOC_INSTALL_DIR)" >NUL
 
 #---------------------------------------------------------------------
 # Clean up
-- 
2.23.0