summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2003-05-06 21:54:10 +0000
committerJelmer Vernooij <jelmer@samba.org>2003-05-06 21:54:10 +0000
commit8909182ed63e6f742c92cafd2c2002a137f65b77 (patch)
tree0ea54c73c3648349725809a701f3033ddee166f7
parent697e982da1972a4df6508a4360226bc5020935ad (diff)
downloadsamba-8909182ed63e6f742c92cafd2c2002a137f65b77.tar.gz
samba-8909182ed63e6f742c92cafd2c2002a137f65b77.tar.bz2
samba-8909182ed63e6f742c92cafd2c2002a137f65b77.zip
Add generating text versions of the docs using xmlto
(This used to be commit 7a85934670e102e06660cf5ff0737d1298f8447b)
-rw-r--r--docs/docbook/Makefile.in21
1 files changed, 18 insertions, 3 deletions
diff --git a/docs/docbook/Makefile.in b/docs/docbook/Makefile.in
index 6dad4664fd..1a9144e5cf 100644
--- a/docs/docbook/Makefile.in
+++ b/docs/docbook/Makefile.in
@@ -37,6 +37,7 @@ HTMLDIR=../htmldocs
MANPROJDOC = manpages
PROJDOC = projdoc
DEVDOC = devdoc
+XMLTO = @XMLTO@
SMBDOTCONFDOC = smbdotconf
PSDIR = ..
PDFDIR = ..
@@ -50,20 +51,22 @@ MANPAGES_HTML=$(patsubst %,$(HTMLDIR)/%.html,$(MANPAGES_NAMES))
all:
@echo "Supported make targets:"
@echo "manpages - Build manpages"
- @echo "pdf - Build PDF version of HOWTO Collection"
+ @echo "pdf - Build PDF version of HOWTO Collection and Developers Guide"
+ @echo "txt - Build plain text version of HOWTO Collection and Developers Guide"
@echo -n "html-single - Build single file HTML version of HOWTO Collection"
@echo " and developers guide"
- @echo "html - Build HTML version of HOWTO Collection"
+ @echo "html - Build HTML version of HOWTO Collection and Developers Guide"
@echo "htmlman - Build html version of manpages"
@echo "htmlfaq - Build html version of the FAQ"
@echo "everything - Build all of the above"
-everything: manpages pdf html-single html htmlman htmlfaq
+everything: manpages pdf html-single html htmlman htmlfaq txt
# Global rules
manpages: $(MANDIR) $(MANPAGES)
pdf: $(PDFDIR) $(PDFDIR)/Samba-HOWTO-Collection.pdf $(PDFDIR)/Samba-Developers-Guide.pdf
+txt: $(TXTDIR) $(TXTDIR)/Samba-HOWTO-Collection.txt $(TXTDIR)/Samba-Developers-Guide.txt
htmlman: $(HTMLDIR) $(MANPAGES_HTML) CSS
htmlfaq: $(HTMLDIR) CSS
@$(XSLTPROC) --stringparam base.dir "$(FAQDIR)/" --stringparam root.filename samba-faq xslt/html-chunk.xsl $(FAQPROJDOC)/sambafaq.xml
@@ -72,6 +75,18 @@ html: $(HTMLDIR) CSS
@$(XSLTPROC) xslt/html-chunk.xsl $(PROJDOC)/samba-doc.xml
# Text files
+$(TXTDIR):
+ mkdir $(TXTDIR)
+
+$(TXTDIR)/Samba-HOWTO-Collection.txt: $(PROJDOC)/samba-doc.xml
+ @echo "Converting samba-doc to plain text..."
+ @$(XMLTO) txt -o $(TXTDIR) $<
+ @mv $(TXTDIR)/samba-doc.txt $(TXTDIR)/Samba-HOWTO-Collection.txt
+
+$(TXTDIR)/Samba-Developers-Guide.txt: $(DEVDOC)/dev-doc.xml
+ @echo "Converting dev-doc to plain text..."
+ @$(XMLTO) txt -o $(TXTDIR) $<
+ @mv $(TXTDIR)/dev-doc.txt $(TXTDIR)/Samba-Developers-Guide.txt
# Adobe PDF files
$(PDFDIR)/Samba-HOWTO-Collection.pdf: $(PROJDOC)/samba-doc.xml