[poky] [PATCH 3/8] documentation/yocto-project-qs/Makefile: Updated to create a PDF

Scott Rifenbark srifenbark at gmail.com
Thu Mar 31 11:31:30 PDT 2011


From: Scott Rifenbark <scott.m.rifenbark at intel.com>

Release 1.0 all of a sudden saw the need for a PDF version of the
Quick Start.  Prior to this I was just generating an HTML version of
this manual to keep the front matter minimal and clean.  Now, however,
the QS has joined the ranks of the other Yocto Project docs.

Several changes were made inside this makefile to accomplish the
goal:  introduction of a title PNG file, a high-level file to contain
the title page information (ypqs.xml), and some changes to the
tarball line and output line.

Signed-off-by: Scott Rifenbark <scott.m.rifenbark at intel.com>
---
 documentation/yocto-project-qs/Makefile |   25 ++++++++++++++-----------
 1 files changed, 14 insertions(+), 11 deletions(-)

diff --git a/documentation/yocto-project-qs/Makefile b/documentation/yocto-project-qs/Makefile
index 9f45058..1dff91c 100644
--- a/documentation/yocto-project-qs/Makefile
+++ b/documentation/yocto-project-qs/Makefile
@@ -1,28 +1,31 @@
 XSLTOPTS = --stringparam html.stylesheet style.css \
-         --xinclude
+           --stringparam  chapter.autolabel 1 \
+           --stringparam  section.autolabel 1 \
+           --stringparam  section.label.includes.component.label 1 \
+	   --xinclude
 
+##
+# These URI should be rewritten by your distribution's xml catalog to
+# match your localy installed XSL stylesheets.
 XSL_BASE_URI  = http://docbook.sourceforge.net/release/xsl/current
 XSL_XHTML_URI = $(XSL_BASE_URI)/xhtml/docbook.xsl
 
-all: html tarball
+all: html pdf tarball
 
-##
-# These URI should be rewritten by your distribution's xml catalog to
-# match your localy installed XSL stylesheets.
+pdf:
+	../tools/poky-docbook-to-pdf ypqs.xml ../template
 
 html:
 #       See http://www.sagehill.net/docbookxsl/HtmlOutput.html 
-
-#	xsltproc $(XSLTOPTS) -o yocto-project-qs.html $(XSL_XHTML_URI) yocto-project-qs.xml
-	xsltproc $(XSLTOPTS) -o yocto-project-qs.html yocto-project-qs-customization.xsl yocto-project-qs.xml
+	xsltproc $(XSLTOPTS) -o yocto-project-qs.html yocto-project-qs-customization.xsl ypqs.xml
 
 tarball: html
-	tar -cvzf yocto-project-qs.tgz yocto-project-qs.html style.css figures/yocto-environment.png figures/building-an-image.png figures/using-a-pre-built-image.png figures/yocto-project-transp.png
+	tar -cvzf yocto-project-qs.tgz yocto-project-qs.html ypqs.pdf style.css figures/yocto-environment.png figures/building-an-image.png figures/using-a-pre-built-image.png figures/ypqs-title.png
 
 validate:
-	xmllint --postvalid --xinclude --noout yocto-project-qs.xml
+	xmllint --postvalid --xinclude --noout ypqs.xml
 
-OUTPUTS = yocto-project-qs.tgz yocto-project-qs.html
+OUTPUTS = yocto-project-qs.tgz yocto-project-qs.html ypqs.pdf
 SOURCES = *.png *.xml *.css
 
 publish:
-- 
1.7.0.4




More information about the poky mailing list