2010-03-18 23:31:35 +00:00
|
|
|
all: html pdf tarball
|
2008-02-26 11:31:34 +00:00
|
|
|
|
|
|
|
pdf:
|
2010-03-18 15:37:59 +00:00
|
|
|
./poky-doc-tools/poky-docbook-to-pdf poky-handbook.xml
|
2010-05-26 14:26:09 +00:00
|
|
|
./poky-doc-tools/poky-docbook-to-pdf bsp-guide.xml
|
2008-02-26 11:31:34 +00:00
|
|
|
# -- old way --
|
|
|
|
# dblatex poky-handbook.xml
|
|
|
|
|
2010-05-26 14:26:09 +00:00
|
|
|
XSLTOPTS = --stringparam html.stylesheet style.css \
|
|
|
|
--stringparam chapter.autolabel 1 \
|
|
|
|
--stringparam appendix.autolabel 1 \
|
2010-06-11 14:27:23 +00:00
|
|
|
--stringparam section.autolabel 1 \
|
|
|
|
--xinclude
|
2010-06-04 13:48:34 +00:00
|
|
|
|
|
|
|
##
|
|
|
|
# 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
|
2010-05-26 14:26:09 +00:00
|
|
|
|
2008-02-26 11:31:34 +00:00
|
|
|
html:
|
|
|
|
# See http://www.sagehill.net/docbookxsl/HtmlOutput.html
|
2010-06-04 13:48:34 +00:00
|
|
|
xsltproc $(XSLTOPTS) -o poky-handbook.html $(XSL_XHTML_URI) poky-handbook.xml
|
|
|
|
xsltproc $(XSLTOPTS) -o bsp-guide.html $(XSL_XHTML_URI) bsp-guide.xml
|
2008-02-26 11:31:34 +00:00
|
|
|
# -- old way --
|
|
|
|
# xmlto xhtml-nochunks poky-handbook.xml
|
|
|
|
|
2008-02-29 23:56:51 +00:00
|
|
|
tarball: html
|
2008-03-01 00:03:03 +00:00
|
|
|
tar -cvzf poky-handbook.tgz poky-handbook.html style.css screenshots/ss-sato.png poky-beaver.png poky-handbook.png
|
2008-02-29 23:56:51 +00:00
|
|
|
|
2008-02-26 11:31:34 +00:00
|
|
|
validate:
|
|
|
|
xmllint --postvalid --xinclude --noout poky-handbook.xml
|
2010-03-18 23:31:35 +00:00
|
|
|
|
2010-05-26 14:26:09 +00:00
|
|
|
OUTPUTS = poky-handbook.tgz poky-handbook.html poky-handbook.pdf bsp-guide.pdf
|
2010-03-18 23:31:35 +00:00
|
|
|
SOURCES = *.png *.xml *.css *.svg
|
|
|
|
|
|
|
|
publish:
|
|
|
|
scp -r $(OUTPUTS) $(SOURCES) o-hand.com:/srv/www/pokylinux.org/doc/
|