diff options
Diffstat (limited to 'documentation/adt-manual/Makefile')
-rw-r--r-- | documentation/adt-manual/Makefile | 36 |
1 files changed, 29 insertions, 7 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) |