diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2005-02-05 21:02:41 +0000 |
---|---|---|
committer | Gerald W. Carter <jerry@samba.org> | 2008-04-23 08:46:12 -0500 |
commit | abd5f7ee4e2e9580612e04b2f2e0075c0fd1d380 (patch) | |
tree | 485643f8365d03e366ea94ba80a10508e6606348 /docs/Makefile | |
parent | d22215a033aec61675746570cbf24bee59f778be (diff) | |
download | samba-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/Makefile')
-rw-r--r-- | docs/Makefile | 4 |
1 files changed, 4 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) |