diff options
Diffstat (limited to 'documentation/kernel-manual/Makefile')
-rw-r--r-- | documentation/kernel-manual/Makefile | 35 |
1 files changed, 29 insertions, 6 deletions
diff --git a/documentation/kernel-manual/Makefile b/documentation/kernel-manual/Makefile index 6c855cd588..2d9cc98c18 100644 --- a/documentation/kernel-manual/Makefile +++ b/documentation/kernel-manual/Makefile | |||
@@ -1,3 +1,20 @@ | |||
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 | |||
1 | XSLTOPTS = --stringparam html.stylesheet style.css \ | 18 | XSLTOPTS = --stringparam html.stylesheet style.css \ |
2 | --stringparam chapter.autolabel 1 \ | 19 | --stringparam chapter.autolabel 1 \ |
3 | --stringparam appendix.autolabel A \ | 20 | --stringparam appendix.autolabel A \ |
@@ -5,6 +22,14 @@ XSLTOPTS = --stringparam html.stylesheet style.css \ | |||
5 | --stringparam section.label.includes.component.label 1 \ | 22 | --stringparam section.label.includes.component.label 1 \ |
6 | --xinclude | 23 | --xinclude |
7 | 24 | ||
25 | VER = 1.0 | ||
26 | DOC = kernel-manual | ||
27 | ALLPREQ = html pdf tarball | ||
28 | TARFILES = kernel-manual.html kernel-manual.pdf style.css figures/kernel-title.png figures/kernel-architecture-overview.png | ||
29 | MANUALS = $(DOC).html $(DOC).pdf | ||
30 | FIGURES = figures | ||
31 | STYLESHEET = *.css | ||
32 | |||
8 | ## | 33 | ## |
9 | # These URI should be rewritten by your distribution's xml catalog to | 34 | # These URI should be rewritten by your distribution's xml catalog to |
10 | # match your localy installed XSL stylesheets. | 35 | # match your localy installed XSL stylesheets. |
@@ -27,16 +52,14 @@ html: | |||
27 | xsltproc $(XSLTOPTS) -o kernel-manual.html yocto-project-kernel-manual-customization.xsl kernel-manual.xml | 52 | xsltproc $(XSLTOPTS) -o kernel-manual.html yocto-project-kernel-manual-customization.xsl kernel-manual.xml |
28 | 53 | ||
29 | tarball: html | 54 | tarball: html |
30 | tar -cvzf kernel-manual.tgz kernel-manual.html kernel-manual.pdf style.css figures/kernel-title.png figures/kernel-big-picture.png figures/kernel-architecture-overview.png | 55 | cd $(DOC); tar -cvzf $(DOC).tgz $(TARFILES); cd .. |
31 | 56 | ||
32 | validate: | 57 | validate: |
33 | xmllint --postvalid --xinclude --noout kernel-manual.xml | 58 | xmllint --postvalid --xinclude --noout kernel-manual.xml |
34 | 59 | ||
35 | OUTPUTS = kernel-manual.tgz kernel-manual.html kernel-manual.pdf | ||
36 | SOURCES = *.png *.xml *.css | ||
37 | |||
38 | publish: | 60 | publish: |
39 | scp -r $(OUTPUTS) $(SOURCES) www.yoctoproject.org:/srv/www/www.yoctoproject.org-doc/kernel-manual | 61 | scp -r $(MANUALS) $(STYLESHEET) www.yoctoproject.org:/srv/www/www.yoctoproject.org-docs/$(VER)/$(DOC) |
62 | scp -r $(FIGURES) www.yoctoproject.org:/srv/www/www.yoctoproject.org-docs/$(VER)/$(DOC)/figures | ||
40 | 63 | ||
41 | clean: | 64 | clean: |
42 | rm -f $(OUTPUTS) | 65 | rm -f $(MANUALS) |