diff options
Diffstat (limited to 'documentation/bsp-guide/Makefile')
-rw-r--r-- | documentation/bsp-guide/Makefile | 35 |
1 files changed, 29 insertions, 6 deletions
diff --git a/documentation/bsp-guide/Makefile b/documentation/bsp-guide/Makefile index af802b1dc4..6371a31569 100644 --- a/documentation/bsp-guide/Makefile +++ b/documentation/bsp-guide/Makefile | |||
@@ -1,9 +1,34 @@ | |||
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 section.autolabel 1 \ | 20 | --stringparam section.autolabel 1 \ |
4 | --stringparam section.label.includes.component.label 1 \ | 21 | --stringparam section.label.includes.component.label 1 \ |
5 | --xinclude | 22 | --xinclude |
6 | 23 | ||
24 | VER = 1.0 | ||
25 | DOC = bsp-guide | ||
26 | ALLPREQ = html pdf tarball | ||
27 | TARFILES = bsp-guide.html bsp-guide.pdf style.css figures/bsp-title.png | ||
28 | MANUALS = $(DOC).html $(DOC).pdf | ||
29 | FIGURES = figures | ||
30 | STYLESHEET = *.css | ||
31 | |||
7 | ## | 32 | ## |
8 | # These URI should be rewritten by your distribution's xml catalog to | 33 | # These URI should be rewritten by your distribution's xml catalog to |
9 | # match your localy installed XSL stylesheets. | 34 | # match your localy installed XSL stylesheets. |
@@ -20,16 +45,14 @@ html: | |||
20 | xsltproc $(XSLTOPTS) -o bsp-guide.html bsp-guide-customization.xsl bsp-guide.xml | 45 | xsltproc $(XSLTOPTS) -o bsp-guide.html bsp-guide-customization.xsl bsp-guide.xml |
21 | 46 | ||
22 | tarball: html | 47 | tarball: html |
23 | tar -cvzf bsp-guide.tgz style.css bsp-guide.html bsp-guide.pdf figures/bsp-title.png | 48 | cd $(DOC); tar -cvzf $(DOC).tgz $(TARFILES); cd .. |
24 | 49 | ||
25 | validate: | 50 | validate: |
26 | xmllint --postvalid --xinclude --noout bsp-guide.xml | 51 | xmllint --postvalid --xinclude --noout bsp-guide.xml |
27 | 52 | ||
28 | OUTPUTS = bsp-guide.pdf bsp-guide.html | ||
29 | SOURCES = *.png *.xml *.css *.svg | ||
30 | |||
31 | publish: | 53 | publish: |
32 | scp -r $(OUTPUTS) $(SOURCES) www.yoctoproject.org:/srv/www/www.yoctoproject.org-doc/bsp-guide | 54 | scp -r $(MANUALS) $(STYLESHEET) www.yoctoproject.org:/srv/www/www.yoctoproject.org-docs/$(VER)/$(DOC) |
55 | scp -r $(FIGURES) www.yoctoproject.org:/srv/www/www.yoctoproject.org-docs/$(VER)/$(DOC)/figures | ||
33 | 56 | ||
34 | clean: | 57 | clean: |
35 | rm -f $(OUTPUTS) | 58 | rm -f $(MANUALS) |