[gnumeric] win32: automate help file generation.



commit 52890eb92abf0f73b146aa570904173a876abcb8
Author: Morten Welinder <terra gnome org>
Date:   Sat Jun 5 00:24:51 2010 -0400

    win32: automate help file generation.

 NEWS                  |    1 +
 doc/C/Makefile.am     |   14 ++++++++++++++
 doc/gnumeric-doc.make |    4 +++-
 3 files changed, 18 insertions(+), 1 deletions(-)
---
diff --git a/NEWS b/NEWS
index cd8b1ee..bfa9414 100644
--- a/NEWS
+++ b/NEWS
@@ -15,6 +15,7 @@ Morten:
 	* Make sure windows for help commands show up on right screen.
 	* Fix dependency tabulation undo issue.
 	* Fix critical when inserting graph using keys.
+	* Automate win32 help generation.
 
 --------------------------------------------------------------------------
 Gnumeric 1.10.5
diff --git a/doc/C/Makefile.am b/doc/C/Makefile.am
index 0c65ed6..6287e49 100644
--- a/doc/C/Makefile.am
+++ b/doc/C/Makefile.am
@@ -89,6 +89,20 @@ if ENABLE_SSGREP
 manpage_DATA += ssgrep.1
 endif
 
+winhelp_DATA =
+winhelpdir=$(gnumeric_datadir)/$(subdir)
+if WITH_WIN32
+winhelp_DATA += gnumeric.chm gnumeric.hhmap
+
+gnumeric.hhmap: chm-stamp
+	-(cd chm && wine 'C:\Program Files\HTML Help Workshop\hhc.exe' gnumeric.hhp)
+	cp chm/gnumeric.hhmap .
+
+gnumeric.chm: gnumeric.hhmap
+	cp chm/gnumeric.chm .
+
+endif
+
 # from gnumeric-doc.make
 dist-hook: validate
 
diff --git a/doc/gnumeric-doc.make b/doc/gnumeric-doc.make
index 74ecdee..b5ea6a3 100644
--- a/doc/gnumeric-doc.make
+++ b/doc/gnumeric-doc.make
@@ -55,7 +55,7 @@ validate :
 # http://home.kc.rr.com/rstone/ricks.htm
 # http://frogleg.mvps.org/helptechnologies/htmlhelp/hhtutorials.html
 # --param htmlhelp.force.map.and.alias 1
-chm :
+chm-stamp chm :
 	-rm -rf chm output
 	mkdir -p chm
 	cd $(srcdir) ; ../add_dbhh.pl --out-dir=$(abs_builddir)/output --map-file=$(abs_builddir)/chm/gnumeric.hhmap
@@ -68,6 +68,8 @@ chm :
 	    mv chm/.$$$$ "$$f" ;			\
 	done
 	cp -r $(srcdir)/figures	chm
+	touch chm-stamp
+
 
 if ENABLE_PDFDOCS
 noinst_DATA += gnumeric.pdf



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]