summaryrefslogtreecommitdiffstats
path: root/documentation/poky-ref-manual/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'documentation/poky-ref-manual/Makefile')
-rw-r--r--documentation/poky-ref-manual/Makefile37
1 files changed, 31 insertions, 6 deletions
diff --git a/documentation/poky-ref-manual/Makefile b/documentation/poky-ref-manual/Makefile
index 82ac880a74..f686304f3d 100644
--- a/documentation/poky-ref-manual/Makefile
+++ b/documentation/poky-ref-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
1XSLTOPTS = --stringparam html.stylesheet style.css \ 18XSLTOPTS = --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,15 @@ 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
25VER = 1.0
26DOC = poky-ref-manual
27ALLPREQ = html pdf tarball
28TARFILES = poky-ref-manual.html poky-ref-manual.pdf style.css figures/yocto-project-transp.png figures/poky-ref-manual.png screenshots/ss-sato.png
29MANUALS = $(DOC).html $(DOC).pdf
30FIGURES = figures
31SCREENSHOTS = screenshots
32STYLESHEET = *.css
33
8## 34##
9# These URI should be rewritten by your distribution's xml catalog to 35# These URI should be rewritten by your distribution's xml catalog to
10# match your localy installed XSL stylesheets. 36# match your localy installed XSL stylesheets.
@@ -21,16 +47,15 @@ html:
21 xsltproc $(XSLTOPTS) -o poky-ref-manual.html poky-ref-manual-customization.xsl poky-ref-manual.xml 47 xsltproc $(XSLTOPTS) -o poky-ref-manual.html poky-ref-manual-customization.xsl poky-ref-manual.xml
22 48
23tarball: html 49tarball: html
24 tar -cvzf poky-ref-manual.tgz poky-ref-manual.html style.css figures/yocto-project-transp.png figures/poky-ref-manual.png screenshots/ss-sato.png 50 cd $(DOC); tar -cvzf $(DOC).tgz $(TARFILES); cd ..
25 51
26validate: 52validate:
27 xmllint --postvalid --xinclude --noout poky-ref-manual.xml 53 xmllint --postvalid --xinclude --noout poky-ref-manual.xml
28 54
29OUTPUTS = poky-ref-manual.tgz poky-ref-manual.html poky-ref-manual.pdf
30SOURCES = *.png *.xml *.css *.svg
31
32publish: 55publish:
33 scp -r $(OUTPUTS) $(SOURCES) www.yoctoproject.org:/srv/www/www.yoctoproject.org-doc/poky-ref-manual 56 scp -r $(MANUALS) $(STYLESHEET) www.yoctoproject.org:/srv/www/www.yoctoproject.org-docs/$(VER)/$(DOC)
57 scp -r $(FIGURES) www.yoctoproject.org:/srv/www/www.yoctoproject.org-docs/$(VER)/$(DOC)/figures
58 scp -r $(SCREENSHOTS) www.yoctoproject.org:/srv/www/www.yoctoproject.org-docs/$(VER)/$(DOC)/screenshots
34 59
35clean: 60clean:
36 rm -f $(OUTPUTS) 61 rm -f $(MANUALS)