r19840 - gnucash-docs/trunk - Restore pdf creation for gnucash-guide and prepare pdf creation for others.

Geert Janssens gjanssens at code.gnucash.org
Fri Nov 19 14:59:18 EST 2010


Author: gjanssens
Date: 2010-11-19 14:59:18 -0500 (Fri, 19 Nov 2010)
New Revision: 19840
Trac: http://svn.gnucash.org/trac/changeset/19840

Added:
   gnucash-docs/trunk/pdf.make
Modified:
   gnucash-docs/trunk/guide/C/Makefile.am
Log:
Restore pdf creation for gnucash-guide and prepare pdf creation for others.

Modified: gnucash-docs/trunk/guide/C/Makefile.am
===================================================================
--- gnucash-docs/trunk/guide/C/Makefile.am	2010-11-19 19:59:04 UTC (rev 19839)
+++ gnucash-docs/trunk/guide/C/Makefile.am	2010-11-19 19:59:18 UTC (rev 19840)
@@ -1,7 +1,7 @@
 figdir = figures
 docname = gnucash-guide
 lang = C
-omffile = gnucash-guide-C.omf
+omffile = $(docname)-C.omf
 entities = \
 	fdl-appendix.xml \
 	legal.xml \
@@ -26,22 +26,6 @@
 	appendixc.xml \
 	appendixd.xml
 include $(top_srcdir)/xmldocs.make
+include $(top_srcdir)/pdf.make
 dist-hook: app-dist-hook
-DISTCLEANFILES =  gnucash-guide-C.omf.out
-
-# 2008-10-02, Tom Browder: PDF creation.
-#
-# See README and HACKING.
-#
-# For now, the environment variable, 'DOCBOOK_XSL', must be set manually.
-#
-# To do: Fix configure to find the right tools and pieces and make the target
-# if all parts are found.
-
-CLEANFILES = gnucash-guide.pdf gnucash-guide.fo
-pdf:
-	fop -xml gnucash-guide.xml -xsl $(DOCBOOK_XSL) -pdf gnucash-guide.pdf
-
-# for debugging intermediate output
-pdf-debug:
-	fop -d -xml gnucash-guide.xml -xsl $(DOCBOOK_XSL) -foout gnucash-guide.fo
+DISTCLEANFILES =  gnucash-guide-C.omf.out
\ No newline at end of file

Added: gnucash-docs/trunk/pdf.make
===================================================================
--- gnucash-docs/trunk/pdf.make	                        (rev 0)
+++ gnucash-docs/trunk/pdf.make	2010-11-19 19:59:18 UTC (rev 19840)
@@ -0,0 +1,20 @@
+# 2008-10-02, Tom Browder: PDF creation.
+# 2010-11-19, Geert Janssens: Make the pdf create more universally usable.
+#
+# See README and HACKING.
+#
+# To do: Fix configure to find the right tools and pieces and make the target
+# if all parts are found.
+
+fofile  = $(docname).fo
+pdffile = $(docname).pdf
+
+pdf: $(pdffile)
+
+.xml.fo:
+	xsltproc -o '$@' --stringparam fop1.extensions 1 $(top_srcdir)/xsl/1.75.2/fo/docbook.xsl '$<'
+
+.fo.pdf:
+	fop '$<' '$@'
+
+CLEANFILES = $(pdffile) $(fofile)
\ No newline at end of file



More information about the gnucash-changes mailing list