Makefile 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. # You must call this Makefile using the following form:
  2. #
  3. # make
  4. # make html
  5. # make pdf
  6. # make tarball
  7. # make clean
  8. # make publish
  9. #
  10. # "make" creates the HTML, PDF, and tarballs.
  11. # "make html" creates just the HTML
  12. # "make pdf" creates just the PDF
  13. # "make tarball" creates the tarball
  14. # "make clean" removes the HTML and PDF files
  15. # "make publish" pushes the HTML, PDF, figures, and stylesheet to the web server
  16. #
  17. XSLTOPTS = --stringparam html.stylesheet style.css \
  18. --stringparam chapter.autolabel 1 \
  19. --stringparam appendix.autolabel A \
  20. --stringparam section.autolabel 1 \
  21. --stringparam section.label.includes.component.label 1 \
  22. --xinclude
  23. VER = 1.0
  24. DOC = kernel-manual
  25. ALLPREQ = html pdf tarball
  26. TARFILES = kernel-manual.html kernel-manual.pdf style.css figures/kernel-title.png figures/kernel-architecture-overview.png
  27. MANUALS = $(DOC).html $(DOC).pdf
  28. FIGURES = figures
  29. STYLESHEET = *.css
  30. ##
  31. # These URI should be rewritten by your distribution's xml catalog to
  32. # match your localy installed XSL stylesheets.
  33. XSL_BASE_URI = http://docbook.sourceforge.net/release/xsl/current
  34. XSL_XHTML_URI = $(XSL_BASE_URI)/xhtml/docbook.xsl
  35. all: html pdf tarball
  36. pdf:
  37. ../tools/poky-docbook-to-pdf kernel-manual.xml ../template
  38. ##
  39. # These URI should be rewritten by your distribution's xml catalog to
  40. # match your localy installed XSL stylesheets.
  41. html:
  42. # See http://www.sagehill.net/docbookxsl/HtmlOutput.html
  43. # xsltproc $(XSLTOPTS) -o yocto-project-qs.html $(XSL_XHTML_URI) yocto-project-qs.xml
  44. xsltproc $(XSLTOPTS) -o kernel-manual.html yocto-project-kernel-manual-customization.xsl kernel-manual.xml
  45. tarball: html
  46. cd $(DOC); tar -cvzf $(DOC).tgz $(TARFILES); cd ..
  47. validate:
  48. xmllint --postvalid --xinclude --noout kernel-manual.xml
  49. publish:
  50. scp -r $(MANUALS) $(STYLESHEET) www.yoctoproject.org:/srv/www/www.yoctoproject.org-docs/$(VER)/$(DOC)
  51. scp -r $(FIGURES) www.yoctoproject.org:/srv/www/www.yoctoproject.org-docs/$(VER)/$(DOC)/figures
  52. clean:
  53. rm -f $(MANUALS)