2010-05-26 14:26:09 +00:00
|
|
|
XSLTOPTS = --stringparam html.stylesheet style.css \
|
|
|
|
--stringparam chapter.autolabel 1 \
|
2010-10-15 11:14:28 +00:00
|
|
|
--stringparam appendix.autolabel A \
|
2010-06-11 14:27:23 +00:00
|
|
|
--stringparam section.autolabel 1 \
|
2010-09-30 18:36:26 +00:00
|
|
|
--stringparam section.label.includes.component.label 1 \
|
2010-06-11 14:27:23 +00:00
|
|
|
--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
|
|
|
|
2010-11-10 20:59:27 +00:00
|
|
|
all: html pdf tarball
|
|
|
|
|
|
|
|
pdf:
|
|
|
|
../tools/poky-docbook-to-pdf poky-ref-manual.xml ../template
|
|
|
|
|
2008-02-26 11:31:34 +00:00
|
|
|
html:
|
|
|
|
# See http://www.sagehill.net/docbookxsl/HtmlOutput.html
|
2010-10-15 11:19:34 +00:00
|
|
|
xsltproc $(XSLTOPTS) -o poky-ref-manual.html $(XSL_XHTML_URI) poky-ref-manual.xml
|
2008-02-26 11:31:34 +00:00
|
|
|
|
2008-02-29 23:56:51 +00:00
|
|
|
tarball: html
|
2010-11-04 20:01:19 +00:00
|
|
|
tar -cvzf poky-ref-manual.tgz poky-ref-manual.html style.css figures/yocto-project-transp.png figures/poky-ref-manual.png screenshots/ss-sato.png
|
2008-02-29 23:56:51 +00:00
|
|
|
|
2008-02-26 11:31:34 +00:00
|
|
|
validate:
|
2010-10-15 11:19:34 +00:00
|
|
|
xmllint --postvalid --xinclude --noout poky-ref-manual.xml
|
2010-03-18 23:31:35 +00:00
|
|
|
|
2010-11-04 20:01:19 +00:00
|
|
|
OUTPUTS = poky-ref-manual.tgz poky-ref-manual.html poky-ref-manual.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/
|
2010-09-29 14:26:29 +00:00
|
|
|
|
|
|
|
clean:
|
2010-10-15 11:19:34 +00:00
|
|
|
rm -f $(OUTPUTS)
|