summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2005-02-10 08:51:11 +0000
committerGerald W. Carter <jerry@samba.org>2008-04-23 08:46:13 -0500
commit85ee909fce3919c00d83e570d9dcefa33453df60 (patch)
tree09ec79166d3025d252177b118f76c9c2eb1ecd66 /docs
parent742c229442700b468b9046e8145f3877d58f47ad (diff)
downloadsamba-85ee909fce3919c00d83e570d9dcefa33453df60.tar.gz
samba-85ee909fce3919c00d83e570d9dcefa33453df60.tar.bz2
samba-85ee909fce3919c00d83e570d9dcefa33453df60.zip
Add support for building PDF's thru FO rather then docbook2latex. Output
files are generated in output/fo-pdf/ (This used to be commit 9cdcd1f9c6966f9ee4223568b123e91ac618100a)
Diffstat (limited to 'docs')
-rw-r--r--docs/Makefile6
-rw-r--r--docs/Makefile.settings.in2
-rw-r--r--docs/configure.in2
3 files changed, 10 insertions, 0 deletions
diff --git a/docs/Makefile b/docs/Makefile
index 92b301f63e..51ec3e529e 100644
--- a/docs/Makefile
+++ b/docs/Makefile
@@ -55,6 +55,7 @@ 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))
+fo-pdf: $(patsubst $(DOCBOOKDIR)/%.xml,$(FOPDFDIR)/%.pdf,$(MAIN_DOCS))
tex: $(patsubst $(DOCBOOKDIR)/%.xml,%.tex,$(MAIN_DOCS))
manpages: $(patsubst $(MANPAGEDIR)/%.xml,$(MANDIR)/%,$(MANPAGES))
pearson: $(PEARSONDIR)/Samba-HOWTO-Collection.xml
@@ -177,6 +178,11 @@ $(FODIR)/%.fo: $(DOCBOOKDIR)/%.xml
mkdir -p $(@D)
$(XSLTPROC) --output $@ http://docbook.sourceforge.net/release/xsl/current/fo/docbook.xsl $<
+# PDF thru Fo
+$(FOPDFDIR)/%.pdf: $(FODIR)/%.fo
+ mkdir -p $(@D)
+ $(FOP) $< $@
+
$(HTMLHELPDIR)/%: $(DOCBOOKDIR)/%.xml
-mkdir -p $@/images
$(COPY_IMAGES) html $(DOCBOOKDIR)/$*.xml $* $@
diff --git a/docs/Makefile.settings.in b/docs/Makefile.settings.in
index b722ba83a2..9ac8f080aa 100644
--- a/docs/Makefile.settings.in
+++ b/docs/Makefile.settings.in
@@ -13,6 +13,7 @@ COPY_IMAGES = ./scripts/copy-images.sh
THUMBPDF = @THUMBPDF@
PDFLATEX = TEXINPUTS=xslt/latex:.: @PDFLATEX@ --file-line-error-style
LATEX = TEXINPUTS=xslt/latex:.: @LATEX@ --file-line-error-style
+FOP = @FOP@
RM = @RM@
PERL = @PERL@
ifndef DEBUG_LATEX
@@ -32,6 +33,7 @@ EXAMPLESDIR = examples
SMBDOTCONFDOC = smbdotconf
DOCBOOKDIR = tmp
PSDIR = $(OUTPUTDIR)
+FOPDFDIR = $(OUTPUTDIR)/fo-pdf
PDFDIR = $(OUTPUTDIR)
DVIDIR = $(OUTPUTDIR)
FODIR = $(OUTPUTDIR)
diff --git a/docs/configure.in b/docs/configure.in
index 033bbed00f..e4f79fbc18 100644
--- a/docs/configure.in
+++ b/docs/configure.in
@@ -67,6 +67,7 @@ DOCS_TARGET_REQUIRE_PROGRAM(PLUCKERBUILD, plucker-build, PLUCKER)
DOCS_TARGET_REQUIRE_PROGRAM(HTML2TEXT, html2text, TXT)
DOCS_TARGET_REQUIRE_PROGRAM(PERL, perl, UNDOCUMENTED)
DOCS_TARGET_REQUIRE_PROGRAM(XMLLINT, xmllint, VERIFY)
+DOCS_TARGET_REQUIRE_PROGRAM(FOP, fop, FOPDF)
DOCS_TARGET_REQUIRE_DIR([$SPECIFIED_SOURCEDIR ..], [source/configure.in], SAMBASOURCEDIR, UNDOCUMENTED)
AC_MSG_RESULT([])
@@ -84,6 +85,7 @@ DOCS_DEFINE_TARGET(MANPAGES, ALL, [manpages], [manpages])
DOCS_DEFINE_TARGET(PEARSON, ALL, [pearson-compatible XML], [pearson])
DOCS_DEFINE_TARGET(PLUCKER, HTML, [plucker versions], [plucker])
DOCS_DEFINE_TARGET(VERIFY, ALL, [verifying docbook output], [verify])
+DOCS_DEFINE_TARGET(FOPDF, ALL, [PDF versions thru FO], [fopdf])
DOCS_DEFINE_TARGET(UNDOCUMENTED, MANPAGES, [list of undocumented options], [undocumented])
DOCS_DEFINE_TARGET(TXT, HTML, [text versions], [txt])