diff options
Diffstat (limited to 'documentation/poky-ref-manual/Makefile')
-rw-r--r-- | documentation/poky-ref-manual/Makefile | 61 |
1 files changed, 0 insertions, 61 deletions
diff --git a/documentation/poky-ref-manual/Makefile b/documentation/poky-ref-manual/Makefile deleted file mode 100644 index eff947c6ee..0000000000 --- a/documentation/poky-ref-manual/Makefile +++ /dev/null | |||
@@ -1,61 +0,0 @@ | |||
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 | |||
18 | XSLTOPTS = --stringparam html.stylesheet style.css \ | ||
19 | --stringparam chapter.autolabel 1 \ | ||
20 | --stringparam appendix.autolabel A \ | ||
21 | --stringparam section.autolabel 1 \ | ||
22 | --stringparam section.label.includes.component.label 1 \ | ||
23 | --xinclude | ||
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 | |||
34 | ## | ||
35 | # These URI should be rewritten by your distribution's xml catalog to | ||
36 | # match your localy installed XSL stylesheets. | ||
37 | XSL_BASE_URI = http://docbook.sourceforge.net/release/xsl/current | ||
38 | XSL_XHTML_URI = $(XSL_BASE_URI)/xhtml/docbook.xsl | ||
39 | |||
40 | all: html pdf tarball | ||
41 | |||
42 | pdf: | ||
43 | ../tools/poky-docbook-to-pdf poky-ref-manual.xml ../template | ||
44 | |||
45 | html: | ||
46 | # See http://www.sagehill.net/docbookxsl/HtmlOutput.html | ||
47 | xsltproc $(XSLTOPTS) -o poky-ref-manual.html poky-ref-manual-customization.xsl poky-ref-manual.xml | ||
48 | |||
49 | tarball: html | ||
50 | cd $(DOC); tar -cvzf $(DOC).tgz $(TARFILES); cd .. | ||
51 | |||
52 | validate: | ||
53 | xmllint --postvalid --xinclude --noout poky-ref-manual.xml | ||
54 | |||
55 | publish: | ||
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 | ||
59 | |||
60 | clean: | ||
61 | rm -f $(MANUALS) | ||