diff options
Diffstat (limited to 'documentation/adt-manual/Makefile')
-rw-r--r-- | documentation/adt-manual/Makefile | 64 |
1 files changed, 0 insertions, 64 deletions
diff --git a/documentation/adt-manual/Makefile b/documentation/adt-manual/Makefile deleted file mode 100644 index f23de5c561..0000000000 --- a/documentation/adt-manual/Makefile +++ /dev/null | |||
@@ -1,64 +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 | 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 | ||
31 | |||
32 | ## | ||
33 | # These URI should be rewritten by your distribution's xml catalog to | ||
34 | # match your localy installed XSL stylesheets. | ||
35 | XSL_BASE_URI = http://docbook.sourceforge.net/release/xsl/current | ||
36 | XSL_XHTML_URI = $(XSL_BASE_URI)/xhtml/docbook.xsl | ||
37 | |||
38 | all: html pdf tarball | ||
39 | |||
40 | pdf: | ||
41 | ../tools/poky-docbook-to-pdf adt-manual.xml ../template | ||
42 | |||
43 | ## | ||
44 | # These URI should be rewritten by your distribution's xml catalog to | ||
45 | # match your localy installed XSL stylesheets. | ||
46 | |||
47 | html: | ||
48 | # See http://www.sagehill.net/docbookxsl/HtmlOutput.html | ||
49 | |||
50 | # xsltproc $(XSLTOPTS) -o adt-manual.html $(XSL_XHTML_URI) adt-manual.xml | ||
51 | xsltproc $(XSLTOPTS) -o adt-manual.html adt-manual-customization.xsl adt-manual.xml | ||
52 | |||
53 | tarball: html | ||
54 | cd $(DOC); tar -cvzf $(DOC).tgz $(TARFILES); cd .. | ||
55 | |||
56 | validate: | ||
57 | xmllint --postvalid --xinclude --noout adt-manual.xml | ||
58 | |||
59 | publish: | ||
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 | ||
62 | |||
63 | clean: | ||
64 | rm -f $(MANUALS) | ||