r20944 - gnucash-docs/trunk - Patch by SASAKI Suguru - Implement epub generation target

Cristian Marchi cmarchi at code.gnucash.org
Fri Jul 22 13:22:16 EDT 2011


Author: cmarchi
Date: 2011-07-22 13:22:15 -0400 (Fri, 22 Jul 2011)
New Revision: 20944
Trac: http://svn.gnucash.org/trac/changeset/20944

Modified:
   gnucash-docs/trunk/Makefile.am
   gnucash-docs/trunk/README
   gnucash-docs/trunk/guide/C/Makefile.am
   gnucash-docs/trunk/guide/Makefile.am
   gnucash-docs/trunk/guide/de_DE/Makefile.am
   gnucash-docs/trunk/guide/it_IT/Makefile.am
   gnucash-docs/trunk/guide/ja_JP/Makefile.am
   gnucash-docs/trunk/help/C/Makefile.am
   gnucash-docs/trunk/help/Makefile.am
   gnucash-docs/trunk/help/de_DE/Makefile.am
   gnucash-docs/trunk/help/it_IT/Makefile.am
Log:
Patch by SASAKI Suguru - Implement epub generation target

Modified: gnucash-docs/trunk/Makefile.am
===================================================================
--- gnucash-docs/trunk/Makefile.am	2011-07-19 18:45:28 UTC (rev 20943)
+++ gnucash-docs/trunk/Makefile.am	2011-07-22 17:22:15 UTC (rev 20944)
@@ -18,3 +18,28 @@
 
 distuninstallcheck_listfiles =  \
 find -regex '.*/var/scrollkeeper/.*' -prune -or -type f -print
+
+epub: epub-recursive
+
+epub-recursive:
+	@fail= failcom='exit 1'; \
+	for f in x $$MAKEFLAGS; do \
+	  case $$f in \
+	    *=* | --[!k]*);; \
+	    *k*) failcom='fail=yes';; \
+	  esac; \
+	done; \
+	dot_seen=no; \
+	target=`echo $@ | sed s/-recursive//`; \
+	list='$(SUBDIRS)'; for subdir in $$list; do \
+	  echo "Making $$target in $$subdir"; \
+	  if test "$$subdir" = "."; then \
+	    dot_seen=yes; \
+	    local_target="$$target-am"; \
+	  else \
+	    local_target="$$target"; \
+	  fi; \
+	  ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
+	  || eval $$failcom; \
+	done; test -z "$$fail"
+

Modified: gnucash-docs/trunk/README
===================================================================
--- gnucash-docs/trunk/README	2011-07-19 18:45:28 UTC (rev 20943)
+++ gnucash-docs/trunk/README	2011-07-22 17:22:15 UTC (rev 20944)
@@ -1,5 +1,5 @@
 ############################################################
-          GnuCash Docs 2.0.x README file.
+          GnuCash Docs 2.4.x README file.
 ------------------------------------------------------------
 
 This is the docs module for GnuCash. The docs can be accessed
@@ -40,8 +40,8 @@
 
 DocBook comes in two flavours - xml and sgml. GnuCash uses the xml flavour.
 
-The documentation source comes with built-in commands to generate html or
-pdf output. For other formats, you will need to use external tools.
+The documentation source comes with built-in commands to generate html, pdf
+or epub output. For other formats, you will need to use external tools.
 
 Note: if you use external tools to render HTML, remember to bring the images
 from figures/ along with the final HTML. The browser will expect to find
@@ -49,10 +49,10 @@
 ~/gnucash-docs/html/
 ~/gnucash-docs/html/figures/
 
-* html and pdf
---------------
+* html, pdf and epub
+--------------------
 
-You can generate the documentation in html or pdf using the autotools
+You can generate the documentation in html, pdf or epub using the autotools
 based build system that comes with the sources.
 
   cd gnucash-docs
@@ -69,6 +69,10 @@
 
   make pdf
 
+To generate the documentation in epub format, instead run
+
+  make epub
+
 If you only wish to generate a subset of the documentation, you can
 go into the directory for that subset and run the above make commands
 from there. For example to only generate the English concepts guide,
@@ -81,6 +85,11 @@
   cd guide/C
   make pdf
 
+or
+
+  cd guide/C
+  make epub
+
 depending on the output format you require.
 
 

Modified: gnucash-docs/trunk/guide/C/Makefile.am
===================================================================
--- gnucash-docs/trunk/guide/C/Makefile.am	2011-07-19 18:45:28 UTC (rev 20943)
+++ gnucash-docs/trunk/guide/C/Makefile.am	2011-07-22 17:22:15 UTC (rev 20944)
@@ -30,4 +30,5 @@
 CLEANFILES =  $(DISTCLEANFILES)
 include $(top_srcdir)/xmldocs.make
 include $(top_srcdir)/pdf.make
+include $(top_srcdir)/epub.make
 dist-hook: app-dist-hook

Modified: gnucash-docs/trunk/guide/Makefile.am
===================================================================
--- gnucash-docs/trunk/guide/Makefile.am	2011-07-19 18:45:28 UTC (rev 20943)
+++ gnucash-docs/trunk/guide/Makefile.am	2011-07-22 17:22:15 UTC (rev 20944)
@@ -1 +1,24 @@
 SUBDIRS = C de_DE it_IT ja_JP
+
+epub:
+	@fail= failcom='exit 1'; \
+	for f in x $$MAKEFLAGS; do \
+	  case $$f in \
+	    *=* | --[!k]*);; \
+	    *k*) failcom='fail=yes';; \
+	  esac; \
+	done; \
+	dot_seen=no; \
+	target=`echo $@ | sed s/-recursive//`; \
+	list='$(SUBDIRS)'; for subdir in $$list; do \
+	  echo "Making $$target in $$subdir"; \
+	  if test "$$subdir" = "."; then \
+	    dot_seen=yes; \
+	    local_target="$$target-am"; \
+	  else \
+	    local_target="$$target"; \
+	  fi; \
+	  ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
+	  || eval $$failcom; \
+	done; test -z "$$fail"
+

Modified: gnucash-docs/trunk/guide/de_DE/Makefile.am
===================================================================
--- gnucash-docs/trunk/guide/de_DE/Makefile.am	2011-07-19 18:45:28 UTC (rev 20943)
+++ gnucash-docs/trunk/guide/de_DE/Makefile.am	2011-07-22 17:22:15 UTC (rev 20944)
@@ -14,4 +14,5 @@
 CLEANFILES =  $(DISTCLEANFILES)
 include $(top_srcdir)/xmldocs.make
 include $(top_srcdir)/pdf.make
-dist-hook: app-dist-hook
\ No newline at end of file
+include $(top_srcdir)/epub.make
+dist-hook: app-dist-hook

Modified: gnucash-docs/trunk/guide/it_IT/Makefile.am
===================================================================
--- gnucash-docs/trunk/guide/it_IT/Makefile.am	2011-07-19 18:45:28 UTC (rev 20943)
+++ gnucash-docs/trunk/guide/it_IT/Makefile.am	2011-07-22 17:22:15 UTC (rev 20944)
@@ -6,4 +6,5 @@
 CLEANFILES =  $(DISTCLEANFILES)
 include $(top_srcdir)/xmldocs.make
 include $(top_srcdir)/pdf.make
+include $(top_srcdir)/epub.make
 dist-hook: app-dist-hook

Modified: gnucash-docs/trunk/guide/ja_JP/Makefile.am
===================================================================
--- gnucash-docs/trunk/guide/ja_JP/Makefile.am	2011-07-19 18:45:28 UTC (rev 20943)
+++ gnucash-docs/trunk/guide/ja_JP/Makefile.am	2011-07-22 17:22:15 UTC (rev 20944)
@@ -28,4 +28,5 @@
 CLEANFILES =  $(DISTCLEANFILES)
 include $(top_srcdir)/xmldocs.make
 include $(top_srcdir)/pdf.make
+include $(top_srcdir)/epub.make
 dist-hook: app-dist-hook

Modified: gnucash-docs/trunk/help/C/Makefile.am
===================================================================
--- gnucash-docs/trunk/help/C/Makefile.am	2011-07-19 18:45:28 UTC (rev 20943)
+++ gnucash-docs/trunk/help/C/Makefile.am	2011-07-22 17:22:15 UTC (rev 20944)
@@ -22,4 +22,5 @@
 CLEANFILES =  $(DISTCLEANFILES)
 include $(top_srcdir)/xmldocs.make
 include $(top_srcdir)/pdf.make
+include $(top_srcdir)/epub.make
 dist-hook: app-dist-hook

Modified: gnucash-docs/trunk/help/Makefile.am
===================================================================
--- gnucash-docs/trunk/help/Makefile.am	2011-07-19 18:45:28 UTC (rev 20943)
+++ gnucash-docs/trunk/help/Makefile.am	2011-07-22 17:22:15 UTC (rev 20944)
@@ -1 +1,24 @@
 SUBDIRS = C de_DE it_IT
+
+epub:
+	@fail= failcom='exit 1'; \
+	for f in x $$MAKEFLAGS; do \
+	  case $$f in \
+	    *=* | --[!k]*);; \
+	    *k*) failcom='fail=yes';; \
+	  esac; \
+	done; \
+	dot_seen=no; \
+	target=`echo $@ | sed s/-recursive//`; \
+	list='$(SUBDIRS)'; for subdir in $$list; do \
+	  echo "Making $$target in $$subdir"; \
+	  if test "$$subdir" = "."; then \
+	    dot_seen=yes; \
+	    local_target="$$target-am"; \
+	  else \
+	    local_target="$$target"; \
+	  fi; \
+	  ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
+	  || eval $$failcom; \
+	done; test -z "$$fail"
+

Modified: gnucash-docs/trunk/help/de_DE/Makefile.am
===================================================================
--- gnucash-docs/trunk/help/de_DE/Makefile.am	2011-07-19 18:45:28 UTC (rev 20943)
+++ gnucash-docs/trunk/help/de_DE/Makefile.am	2011-07-22 17:22:15 UTC (rev 20944)
@@ -12,4 +12,5 @@
 CLEANFILES =  $(DISTCLEANFILES)
 include $(top_srcdir)/xmldocs.make
 include $(top_srcdir)/pdf.make
+include $(top_srcdir)/epub.make
 dist-hook: app-dist-hook

Modified: gnucash-docs/trunk/help/it_IT/Makefile.am
===================================================================
--- gnucash-docs/trunk/help/it_IT/Makefile.am	2011-07-19 18:45:28 UTC (rev 20943)
+++ gnucash-docs/trunk/help/it_IT/Makefile.am	2011-07-22 17:22:15 UTC (rev 20944)
@@ -6,4 +6,5 @@
 CLEANFILES =  $(DISTCLEANFILES)
 include $(top_srcdir)/xmldocs.make
 include $(top_srcdir)/pdf.make
+include $(top_srcdir)/epub.make
 dist-hook: app-dist-hook



More information about the gnucash-changes mailing list