[oe-commits] org.oe.documentation usermanual: Modify the Makefile so that "make <type>" works for the
lenehan commit
openembedded-commits at lists.openembedded.org
Fri May 4 06:22:37 UTC 2007
usermanual: Modify the Makefile so that "make <type>" works for the
following types: dvi, pdf, ps, rtf, tex, texi and txt. This is in addition
to html and xhtml were already working. Update the readme to give a guide as
to what packages you need on the host for these to work.
Author: lenehan at openembedded.org
Branch: org.openembedded.documentation
Revision: 67b9d3a1b37c967bf0e6f356980db8176dca3264
ViewMTN: http://monotone.openembedded.org/revision.psp?id=67b9d3a1b37c967bf0e6f356980db8176dca3264
Files:
1
usermanual/Makefile
usermanual/README
Diffs:
#
# mt diff -ref06b87ab748aa3e0968d61cba4045b8c2150bdc -r67b9d3a1b37c967bf0e6f356980db8176dca3264
#
#
#
# patch "usermanual/Makefile"
# from [14f2cf7f22c8363842614ac84c4ddfef8274b08b]
# to [d5c93d6ef5339503e4126a46c5f48d7e004677bd]
#
# patch "usermanual/README"
# from [49ad5c0cc8345a90ad8286fb1a901172eaa11953]
# to [430049c6902e4d89b99966ac0a0a7df28b48d2f0]
#
============================================================
--- usermanual/Makefile 14f2cf7f22c8363842614ac84c4ddfef8274b08b
+++ usermanual/Makefile d5c93d6ef5339503e4126a46c5f48d7e004677bd
@@ -1,9 +1,10 @@ manual = $(topdir)/usermanual.xml
topdir = .
manual = $(topdir)/usermanual.xml
# types = pdf txt rtf ps xhtml html man tex texi dvi
# types = pdf txt
-types = $(xmltotypes) $(htmltypes)
-xmltotypes = pdf txt
+types = $(xmltotypes) $(htmltypes) $(docbooktotypes)
+xmltotypes =
+docbooktotypes = dvi pdf ps rtf tex texi txt
htmltypes = html xhtml
htmlxsl = $(if $(filter $@,$(foreach type,$(htmltypes),$(type)-nochunks)),docbook-utf8.xsl,http://docbook.sourceforge.net/release/xsl/current/$@/chunk.xsl)
htmlcssfile = docbook.css
@@ -47,6 +48,9 @@ $(xmltotypes): $(manual)
$(xmltotypes): $(manual)
$(call command,xmlto --extensions -o $(topdir)/$@ $@ $(manual),XMLTO $@ $(manual))
+$(docbooktotypes): $(manual)
+ $(call command,docbook2$@ $(manual),DOCBOOK2 $@ $(manual))
+
clean:
rm -rf $(cleanfiles)
============================================================
--- usermanual/README 49ad5c0cc8345a90ad8286fb1a901172eaa11953
+++ usermanual/README 430049c6902e4d89b99966ac0a0a7df28b48d2f0
@@ -1 +1,18 @@
-use 'docbook2pdf usermanual.xml' to generate a pdf version, because doing it via the Makefile doesn't work
+To generate the user-manual, run:
+
+ make <type>
+
+in this directory, where type is one of:
+
+ xhtml
+ html
+ dvi
+ pdf
+ ps
+ rtf
+ tex
+ texi
+ txt
+
+For html and xhtml you need xsltproc installed.
+For the other you need docbook-utils installed.
More information about the Openembedded-commits
mailing list