summaryrefslogtreecommitdiffstats
path: root/documentation
diff options
context:
space:
mode:
authorScott Rifenbark <scott.m.rifenbark@intel.com>2011-10-11 11:04:28 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-10-14 00:39:51 +0100
commit14c9af0056d9ba63c9a509624cc835cb8ee2b8ad (patch)
tree9fa4e9d0f2781f77eec95933e029d5a3a3ef31de /documentation
parentd106d15cade4dc60e711d03cb54b32d1c4e0d3b1 (diff)
downloadpoky-14c9af0056d9ba63c9a509624cc835cb8ee2b8ad.tar.gz
documentation: Makefile corrections to support web server structure
The web server directory structure for the post 1.0 releases was changed. Also, the creation of a new 1.0 area in the web structure was retroactively created. this broke the five make files for publishing documents to the web. I fixed all five files so they now push to the 1.0 area only. The fix included hard-coding the 1.0 directory structure. I also set them up to be a little more generic. (From yocto-docs rev: d2cd8f1165b0cc995fc322a7d836de0902da7614) Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'documentation')
-rw-r--r--documentation/adt-manual/Makefile36
-rw-r--r--documentation/bsp-guide/Makefile35
-rw-r--r--documentation/kernel-manual/Makefile35
-rw-r--r--documentation/poky-ref-manual/Makefile37
-rw-r--r--documentation/yocto-project-qs/Makefile33
5 files changed, 145 insertions, 31 deletions
diff --git a/documentation/adt-manual/Makefile b/documentation/adt-manual/Makefile
index 560913a69d..f23de5c561 100644
--- a/documentation/adt-manual/Makefile
+++ b/documentation/adt-manual/Makefile
@@ -1,9 +1,33 @@
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 \
4 --stringparam section.autolabel 1 \ 21 --stringparam section.autolabel 1 \
5 --stringparam section.label.includes.component.label 1 \ 22 --stringparam section.label.includes.component.label 1 \
6 --xinclude 23 --xinclude
24VER = 1.0
25DOC = adt-manual
26ALLPREQ = html pdf tarball
27TARFILES = adt-manual.html adt-manual.pdf style.css figures/adt-title.png
28MANUALS = $(DOC).html $(DOC).pdf
29FIGURES = figures
30STYLESHEET = *.css
7 31
8## 32##
9# 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
@@ -27,16 +51,14 @@ html:
27 xsltproc $(XSLTOPTS) -o adt-manual.html adt-manual-customization.xsl adt-manual.xml 51 xsltproc $(XSLTOPTS) -o adt-manual.html adt-manual-customization.xsl adt-manual.xml
28 52
29tarball: html 53tarball: html
30 tar -cvzf adt-manual.tgz adt-manual.html adt-manual.pdf style.css figures/adt-title.png figures/yocto-project-transp.png 54 cd $(DOC); tar -cvzf $(DOC).tgz $(TARFILES); cd ..
31 55
32validate: 56validate:
33 xmllint --postvalid --xinclude --noout adt-manual.xml 57 xmllint --postvalid --xinclude --noout adt-manual.xml
34 58
35OUTPUTS = adt-manual.tgz adt-manual.html adt-manual.pdf
36SOURCES = *.png *.xml *.css
37
38publish: 59publish:
39 scp -r $(OUTPUTS) $(SOURCES) www.yoctoproject.org:/srv/www/www.yoctoproject.org-doc/adt-manual 60 scp -r $(MANUALS) $(STYLESHEET) www.yoctoproject.org:/srv/www/www.yoctoproject.org-docs/$(VER)/$(DOC)
61 scp -r $(FIGURES) www.yoctoproject.org:/srv/www/www.yoctoproject.org-docs/$(VER)/$(DOC)/figures
40 62
41clean: 63clean:
42 rm -f $(OUTPUTS) 64 rm -f $(MANUALS)
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
1XSLTOPTS = --stringparam html.stylesheet style.css \ 18XSLTOPTS = --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
24VER = 1.0
25DOC = bsp-guide
26ALLPREQ = html pdf tarball
27TARFILES = bsp-guide.html bsp-guide.pdf style.css figures/bsp-title.png
28MANUALS = $(DOC).html $(DOC).pdf
29FIGURES = figures
30STYLESHEET = *.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
22tarball: html 47tarball: 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
25validate: 50validate:
26 xmllint --postvalid --xinclude --noout bsp-guide.xml 51 xmllint --postvalid --xinclude --noout bsp-guide.xml
27 52
28OUTPUTS = bsp-guide.pdf bsp-guide.html
29SOURCES = *.png *.xml *.css *.svg
30
31publish: 53publish:
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
34clean: 57clean:
35 rm -f $(OUTPUTS) 58 rm -f $(MANUALS)
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
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,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
25VER = 1.0
26DOC = kernel-manual
27ALLPREQ = html pdf tarball
28TARFILES = kernel-manual.html kernel-manual.pdf style.css figures/kernel-title.png figures/kernel-architecture-overview.png
29MANUALS = $(DOC).html $(DOC).pdf
30FIGURES = figures
31STYLESHEET = *.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
29tarball: html 54tarball: 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
32validate: 57validate:
33 xmllint --postvalid --xinclude --noout kernel-manual.xml 58 xmllint --postvalid --xinclude --noout kernel-manual.xml
34 59
35OUTPUTS = kernel-manual.tgz kernel-manual.html kernel-manual.pdf
36SOURCES = *.png *.xml *.css
37
38publish: 60publish:
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
41clean: 64clean:
42 rm -f $(OUTPUTS) 65 rm -f $(MANUALS)
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)
diff --git a/documentation/yocto-project-qs/Makefile b/documentation/yocto-project-qs/Makefile
index 41c35e11a9..c58a8e914f 100644
--- a/documentation/yocto-project-qs/Makefile
+++ b/documentation/yocto-project-qs/Makefile
@@ -1,6 +1,29 @@
1# You must call this Makefile using the following form:
2#
3# make
4# make html
5# make tarball
6# make clean
7# make publish
8#
9# "make" creates the HTML and tarball.
10# "make html" creates just the HTML
11# "make tarball" creates the tarball
12# "make clean" removes the HTML file
13# "make publish" pushes the HTML, figures, and stylesheet to the web server
14#
15
1XSLTOPTS = --stringparam html.stylesheet style.css \ 16XSLTOPTS = --stringparam html.stylesheet style.css \
2 --xinclude 17 --xinclude
3 18
19VER = 1.0
20DOC = yocto-quick-start
21ALLPREQ = html pdf tarball
22TARFILES = yocto-project-qs.html style.css figures/yocto-environment.png figures/building-an-image.png figures/using-a-pre-built-image.png figures/yocto-project-transp.png
23MANUALS = yocto-project-qs.html
24FIGURES = figures
25STYLESHEET = *.css
26
4XSL_BASE_URI = http://docbook.sourceforge.net/release/xsl/current 27XSL_BASE_URI = http://docbook.sourceforge.net/release/xsl/current
5XSL_XHTML_URI = $(XSL_BASE_URI)/xhtml/docbook.xsl 28XSL_XHTML_URI = $(XSL_BASE_URI)/xhtml/docbook.xsl
6 29
@@ -17,16 +40,14 @@ html:
17 xsltproc $(XSLTOPTS) -o yocto-project-qs.html yocto-project-qs-customization.xsl yocto-project-qs.xml 40 xsltproc $(XSLTOPTS) -o yocto-project-qs.html yocto-project-qs-customization.xsl yocto-project-qs.xml
18 41
19tarball: html 42tarball: html
20 tar -cvzf yocto-project-qs.tgz yocto-project-qs.html ypqs.pdf style.css figures/yocto-environment.png figures/building-an-image.png figures/using-a-pre-built-image.png figures/yocto-project-transp.png 43 cd $(DOC); tar -cvzf yocto-project-qs.tgz $(TARFILES); cd ..
21 44
22validate: 45validate:
23 xmllint --postvalid --xinclude --noout yocto-project-qs.xml 46 xmllint --postvalid --xinclude --noout yocto-project-qs.xml
24 47
25OUTPUTS = yocto-project-qs.tgz yocto-project-qs.html ypqs.pdf
26SOURCES = *.png *.xml *.css
27
28publish: 48publish:
29 scp -r $(OUTPUTS) $(SOURCES) www.yoctoproject.org:/srv/www/www.yoctoproject.org-doc/yocto-quick-start 49 scp -r $(MANUALS) $(STYLESHEET) www.yoctoproject.org:/srv/www/www.yoctoproject.org-docs/$(VER)/$(DOC)
50 scp -r $(FIGURES) www.yoctoproject.org:/srv/www/www.yoctoproject.org-docs/$(VER)/$(DOC)/figures
30 51
31clean: 52clean:
32 rm -f $(OUTPUTS) 53 rm -f $(MANUALS)