summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2005-02-05 21:02:41 +0000
committerGerald W. Carter <jerry@samba.org>2008-04-23 08:46:12 -0500
commitabd5f7ee4e2e9580612e04b2f2e0075c0fd1d380 (patch)
tree485643f8365d03e366ea94ba80a10508e6606348 /docs
parentd22215a033aec61675746570cbf24bee59f778be (diff)
downloadsamba-abd5f7ee4e2e9580612e04b2f2e0075c0fd1d380.tar.gz
samba-abd5f7ee4e2e9580612e04b2f2e0075c0fd1d380.tar.bz2
samba-abd5f7ee4e2e9580612e04b2f2e0075c0fd1d380.zip
Allow building text versions of the docs splitted by chapter
(This used to be commit b213126f80ed639cb1fe10ec86557632aa283e6e)
Diffstat (limited to 'docs')
-rw-r--r--docs/Makefile4
-rw-r--r--docs/Makefile.settings.in1
2 files changed, 5 insertions, 0 deletions
diff --git a/docs/Makefile b/docs/Makefile
index f5236b56ca..92b301f63e 100644
--- a/docs/Makefile
+++ b/docs/Makefile
@@ -53,6 +53,7 @@ pdf: $(patsubst $(DOCBOOKDIR)/%.xml,$(PDFDIR)/%.pdf,$(MAIN_DOCS))
dvi: $(patsubst $(DOCBOOKDIR)/%.xml,$(DVIDIR)/%.dvi,$(MAIN_DOCS))
ps: $(patsubst $(DOCBOOKDIR)/%.xml,$(PSDIR)/%.ps,$(MAIN_DOCS))
txt: $(patsubst $(DOCBOOKDIR)/%.xml,$(TXTDIR)/%.txt,$(MAIN_DOCS))
+txt-chunks: $(patsubst $(DOCBOOKDIR)/%.xml,$(TXTDIR)/%/,$(MAIN_DOCS))
fo: $(patsubst $(DOCBOOKDIR)/%.xml,$(FODIR)/%.fo,$(MAIN_DOCS))
tex: $(patsubst $(DOCBOOKDIR)/%.xml,%.tex,$(MAIN_DOCS))
manpages: $(patsubst $(MANPAGEDIR)/%.xml,$(MANDIR)/%,$(MANPAGES))
@@ -121,6 +122,9 @@ $(TXTDIR)/%.txt: $(HTMLDIR)/%.html
mkdir -p $(@D)
$(HTML2TEXT) -nobs -style pretty -o $@ $<
+$(TXTDIR)/%/: $(HTMLDIR)/%/index.html
+ $(MAKE) `echo $(HTMLDIR)/$*/*.html | $(PERL) -p -e 's|$(HTMLDIR)|$(TXTDIR)|g;s/\.html/\.txt/g;'`
+
# Tex files
%.tex: $(DOCBOOKDIR)/%.xml xslt/latex.xsl
mkdir -p $(@D)
diff --git a/docs/Makefile.settings.in b/docs/Makefile.settings.in
index 1c38d27492..b722ba83a2 100644
--- a/docs/Makefile.settings.in
+++ b/docs/Makefile.settings.in
@@ -14,6 +14,7 @@ THUMBPDF = @THUMBPDF@
PDFLATEX = TEXINPUTS=xslt/latex:.: @PDFLATEX@ --file-line-error-style
LATEX = TEXINPUTS=xslt/latex:.: @LATEX@ --file-line-error-style
RM = @RM@
+PERL = @PERL@
ifndef DEBUG_LATEX
PDFLATEX += --interaction nonstopmode
LATEX += --interaction nonstopmode