Makefile 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. all: html pdf tarball
  2. pdf:
  3. cd ..; ./tools/poky-docbook-to-pdf ./poky-ref-manual/poky-handbook.xml ./template
  4. cd..; ./tools/poky-docbook-to-pdf ./poky-ref-manual/bsp-guide.xml ./template
  5. XSLTOPTS = --stringparam html.stylesheet style.css \
  6. --stringparam chapter.autolabel 1 \
  7. --stringparam appendix.autolabel 1 \
  8. --stringparam section.autolabel 1 \
  9. --stringparam section.label.includes.component.label 1 \
  10. --xinclude
  11. ##
  12. # These URI should be rewritten by your distribution's xml catalog to
  13. # match your localy installed XSL stylesheets.
  14. XSL_BASE_URI = http://docbook.sourceforge.net/release/xsl/current
  15. XSL_XHTML_URI = $(XSL_BASE_URI)/xhtml/docbook.xsl
  16. html:
  17. # See http://www.sagehill.net/docbookxsl/HtmlOutput.html
  18. xsltproc $(XSLTOPTS) -o poky-handbook.html $(XSL_XHTML_URI) poky-handbook.xml
  19. xsltproc $(XSLTOPTS) -o bsp-guide.html $(XSL_XHTML_URI) bsp-guide.xml
  20. tarball: html
  21. tar -cvzf poky-handbook.tgz poky-handbook.html style.css screenshots/ss-sato.png poky-beaver.png poky-handbook.png
  22. validate:
  23. xmllint --postvalid --xinclude --noout poky-handbook.xml
  24. OUTPUTS = poky-handbook.tgz poky-handbook.html poky-handbook.pdf bsp-guide.pdf
  25. SOURCES = *.png *.xml *.css *.svg
  26. publish:
  27. scp -r $(OUTPUTS) $(SOURCES) o-hand.com:/srv/www/pokylinux.org/doc/
  28. clean:
  29. rm $(OUTPUTS)