Makefile 842 B

12345678910111213141516171819202122232425
  1. all: html pdf
  2. pdf:
  3. poky-docbook-to-pdf poky-handbook.xml
  4. # -- old way --
  5. # dblatex poky-handbook.xml
  6. html:
  7. # See http://www.sagehill.net/docbookxsl/HtmlOutput.html
  8. xsltproc --stringparam html.stylesheet style.css \
  9. --stringparam chapter.autolabel 1 \
  10. --stringparam appendix.autolabel 1 \
  11. --stringparam section.autolabel 1 \
  12. -o poky-handbook.html \
  13. --xinclude /usr/share/xml/docbook/stylesheet/nwalsh/html/docbook.xsl \
  14. poky-handbook.xml
  15. # -- old way --
  16. # xmlto xhtml-nochunks poky-handbook.xml
  17. tarball: html
  18. tar -cvzf poky-handbook.tgz poky-handbook.html style.css screenshots/ss-sato.png poky-beaver.png poky-handbook.png
  19. validate:
  20. xmllint --postvalid --xinclude --noout poky-handbook.xml