diff options
author | Scott Rifenbark <scott.m.rifenbark@intel.com> | 2011-10-11 11:04:28 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-10-14 00:39:51 +0100 |
commit | 14c9af0056d9ba63c9a509624cc835cb8ee2b8ad (patch) | |
tree | 9fa4e9d0f2781f77eec95933e029d5a3a3ef31de /documentation | |
parent | d106d15cade4dc60e711d03cb54b32d1c4e0d3b1 (diff) | |
download | poky-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/Makefile | 36 | ||||
-rw-r--r-- | documentation/bsp-guide/Makefile | 35 | ||||
-rw-r--r-- | documentation/kernel-manual/Makefile | 35 | ||||
-rw-r--r-- | documentation/poky-ref-manual/Makefile | 37 | ||||
-rw-r--r-- | documentation/yocto-project-qs/Makefile | 33 |
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 | |||
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 \ |
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 |
24 | VER = 1.0 | ||
25 | DOC = adt-manual | ||
26 | ALLPREQ = html pdf tarball | ||
27 | TARFILES = adt-manual.html adt-manual.pdf style.css figures/adt-title.png | ||
28 | MANUALS = $(DOC).html $(DOC).pdf | ||
29 | FIGURES = figures | ||
30 | STYLESHEET = *.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 | ||
29 | tarball: html | 53 | tarball: 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 | ||
32 | validate: | 56 | validate: |
33 | xmllint --postvalid --xinclude --noout adt-manual.xml | 57 | xmllint --postvalid --xinclude --noout adt-manual.xml |
34 | 58 | ||
35 | OUTPUTS = adt-manual.tgz adt-manual.html adt-manual.pdf | ||
36 | SOURCES = *.png *.xml *.css | ||
37 | |||
38 | publish: | 59 | publish: |
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 | ||
41 | clean: | 63 | clean: |
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 | |||
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) |
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) |
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 | |||
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,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 | ||
25 | VER = 1.0 | ||
26 | DOC = poky-ref-manual | ||
27 | ALLPREQ = html pdf tarball | ||
28 | TARFILES = poky-ref-manual.html poky-ref-manual.pdf style.css figures/yocto-project-transp.png figures/poky-ref-manual.png screenshots/ss-sato.png | ||
29 | MANUALS = $(DOC).html $(DOC).pdf | ||
30 | FIGURES = figures | ||
31 | SCREENSHOTS = screenshots | ||
32 | STYLESHEET = *.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 | ||
23 | tarball: html | 49 | tarball: 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 | ||
26 | validate: | 52 | validate: |
27 | xmllint --postvalid --xinclude --noout poky-ref-manual.xml | 53 | xmllint --postvalid --xinclude --noout poky-ref-manual.xml |
28 | 54 | ||
29 | OUTPUTS = poky-ref-manual.tgz poky-ref-manual.html poky-ref-manual.pdf | ||
30 | SOURCES = *.png *.xml *.css *.svg | ||
31 | |||
32 | publish: | 55 | publish: |
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 | ||
35 | clean: | 60 | clean: |
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 | |||
1 | XSLTOPTS = --stringparam html.stylesheet style.css \ | 16 | XSLTOPTS = --stringparam html.stylesheet style.css \ |
2 | --xinclude | 17 | --xinclude |
3 | 18 | ||
19 | VER = 1.0 | ||
20 | DOC = yocto-quick-start | ||
21 | ALLPREQ = html pdf tarball | ||
22 | TARFILES = 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 | ||
23 | MANUALS = yocto-project-qs.html | ||
24 | FIGURES = figures | ||
25 | STYLESHEET = *.css | ||
26 | |||
4 | XSL_BASE_URI = http://docbook.sourceforge.net/release/xsl/current | 27 | XSL_BASE_URI = http://docbook.sourceforge.net/release/xsl/current |
5 | XSL_XHTML_URI = $(XSL_BASE_URI)/xhtml/docbook.xsl | 28 | XSL_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 | ||
19 | tarball: html | 42 | tarball: 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 | ||
22 | validate: | 45 | validate: |
23 | xmllint --postvalid --xinclude --noout yocto-project-qs.xml | 46 | xmllint --postvalid --xinclude --noout yocto-project-qs.xml |
24 | 47 | ||
25 | OUTPUTS = yocto-project-qs.tgz yocto-project-qs.html ypqs.pdf | ||
26 | SOURCES = *.png *.xml *.css | ||
27 | |||
28 | publish: | 48 | publish: |
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 | ||
31 | clean: | 52 | clean: |
32 | rm -f $(OUTPUTS) | 53 | rm -f $(MANUALS) |