summaryrefslogtreecommitdiff
path: root/docs/docbook
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2003-05-27 01:28:23 +0000
committerJelmer Vernooij <jelmer@samba.org>2003-05-27 01:28:23 +0000
commit115d3fc89ca479856b0a46cbcea0b0b25fc0ff7c (patch)
tree6530bcefda0fb329132c0f06b2e68e398b909ffa /docs/docbook
parent6146adf54899d2d9016a39a867257f6a6047b2ea (diff)
downloadsamba-115d3fc89ca479856b0a46cbcea0b0b25fc0ff7c.tar.gz
samba-115d3fc89ca479856b0a46cbcea0b0b25fc0ff7c.tar.bz2
samba-115d3fc89ca479856b0a46cbcea0b0b25fc0ff7c.zip
Add ability to generate tex, dvi and ps files
(This used to be commit 5e8fda395ca417d9e9fba7b0158a07f2f92bcf1a)
Diffstat (limited to 'docs/docbook')
-rw-r--r--docs/docbook/Makefile.in64
-rw-r--r--docs/docbook/configure.in2
2 files changed, 53 insertions, 13 deletions
diff --git a/docs/docbook/Makefile.in b/docs/docbook/Makefile.in
index 673db0f342..523a2e42ad 100644
--- a/docs/docbook/Makefile.in
+++ b/docs/docbook/Makefile.in
@@ -30,6 +30,8 @@ MANPAGES_NAMES=findsmb.1 smbclient.1 \
XSLTPROC = @XSLTPROC@
PDFLATEX = @PDFLATEX@
+LATEX = @LATEX@
+DVIPS = @DVIPS@
HTMLDOC = @HTMLDOC@
SRCDIR = @srcdir@
MANDIR=../manpages
@@ -41,6 +43,7 @@ XMLTO = @XMLTO@
SMBDOTCONFDOC = smbdotconf
PSDIR = ..
PDFDIR = ..
+DVIDIR = ..
TXTDIR = ../textdocs
FAQPROJDOC = faq
FAQDIR = ../faq
@@ -52,6 +55,9 @@ all:
@echo "Supported make targets:"
@echo "manpages - Build manpages"
@echo "pdf - Build PDF version of HOWTO Collection and Developers Guide"
+ @echo "tex - Build Latex version of HOWTO Collection and Developers Guide"
+ @echo "dvi - Build Device Independant Files of HOWTO Collection and Developers Guide"
+ @echo "ps - Build PostScript 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"
@@ -60,12 +66,15 @@ all:
@echo "htmlfaq - Build html version of the FAQ"
@echo "everything - Build all of the above"
-everything: manpages pdf html-single html htmlman htmlfaq txt
+everything: manpages pdf html-single html htmlman htmlfaq txt ps
# Global rules
manpages: $(MANDIR) $(MANPAGES)
+tex: samba-doc.tex dev-doc.tex
pdf: $(PDFDIR) $(PDFDIR)/Samba-HOWTO-Collection.pdf $(PDFDIR)/Samba-Developers-Guide.pdf
+dvi: $(DVIDIR) $(DVIDIR)/Samba-HOWTO-Collection.dvi $(DVIDIR)/Samba-Developers-Guide.dvi
+ps: $(PSDIR) $(PSDIR)/Samba-HOWTO-Collection.ps $(PSDIR)/Samba-Developers-Guide.ps
hpdf: $(PDFDIR) $(PDFDIR)/Samba-HOWTO-Collection.pdf
txt: $(TXTDIR) $(TXTDIR)/Samba-HOWTO-Collection.txt $(TXTDIR)/Samba-Developers-Guide.txt
htmlman: $(HTMLDIR) $(MANPAGES_HTML) CSS
@@ -89,27 +98,56 @@ $(TXTDIR)/Samba-Developers-Guide.txt: $(DEVDOC)/dev-doc.xml
@$(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
+# Tex files
+samba-doc.tex: $(PROJDOC)/samba-doc.xml
@echo "Converting samba-doc to LaTeX..."
- @$(XSLTPROC) --output samba-doc.tex xslt/latex.xsl $<
+ @$(XSLTPROC) --output $@ xslt/latex.xsl $<
+
+dev-doc.tex: $(DEVDOC)/dev-doc.xml
+ @echo "Converting dev-doc to LaTeX..."
+ @$(XSLTPROC) --output $@ xslt/latex.xsl $<
+
+# Adobe PDF files
+$(PDFDIR)/Samba-HOWTO-Collection.pdf: samba-doc.tex
@echo "Building LaTeX sources via $(PDFLATEX)..."
- @$(PDFLATEX) samba-doc.tex | grep 'Rerun to get cross-references right' && \
- $(PDFLATEX) samba-doc.tex | grep 'Rerun to get cross-references right' && \
- $(PDFLATEX) samba-doc.tex || echo
+ @$(PDFLATEX) $< | grep 'Rerun to get cross-references right' && \
+ $(PDFLATEX) $< | grep 'Rerun to get cross-references right' && \
+ $(PDFLATEX) $< || echo
@echo "done"
@mv samba-doc.pdf $@
-$(PDFDIR)/Samba-Developers-Guide.pdf: $(DEVDOC)/dev-doc.xml
- @echo "Converting dev-doc to LaTeX..."
- @$(XSLTPROC) --output dev-doc.tex xslt/latex.xsl $<
+$(PDFDIR)/Samba-Developers-Guide.pdf: dev-doc.tex
@echo "Building LaTeX sources via $(PDFLATEX)..."
- @$(PDFLATEX) dev-doc.tex | grep 'Rerun to get cross-references right' && \
- $(PDFLATEX) dev-doc.tex | grep 'Rerun to get cross-references right' && \
- $(PDFLATEX) dev-doc.tex || echo
+ @$(PDFLATEX) $< | grep 'Rerun to get cross-references right' && \
+ $(PDFLATEX) $< | grep 'Rerun to get cross-references right' && \
+ $(PDFLATEX) $< || echo
@echo "done"
@mv dev-doc.pdf $@
+# DVI files
+$(DVIDIR)/Samba-HOWTO-Collection.dvi: samba-doc.tex
+ @echo "Building LaTeX sources via $(LATEX)..."
+ @$(LATEX) $< | grep 'Rerun to get cross-references right' && \
+ $(LATEX) $< | grep 'Rerun to get cross-references right' && \
+ $(LATEX) $< || echo
+ @echo "done"
+ @mv samba-doc.dvi $@
+
+$(DVIDIR)/Samba-Developers-Guide.dvi: dev-doc.tex
+ @echo "Building LaTeX sources via $(LATEX)..."
+ @$(LATEX) $< | grep 'Rerun to get cross-references right' && \
+ $(LATEX) $< | grep 'Rerun to get cross-references right' && \
+ $(LATEX) $< || echo
+ @echo "done"
+ @mv dev-doc.dvi $@
+
+# PostScript files
+$(PSDIR)/Samba-HOWTO-Collection.ps: $(DVIDIR)/Samba-HOWTO-Collection.dvi
+ $(DVIPS) -o $@ $<
+
+$(PSDIR)/Samba-Developers-Guide.ps: $(DVIDIR)/Samba-Developers-Guide.dvi
+ $(DVIPS) -o $@ $<
+
# Single large HTML files
$(HTMLDIR):
diff --git a/docs/docbook/configure.in b/docs/docbook/configure.in
index 80368d8390..3b0c55e3ec 100644
--- a/docs/docbook/configure.in
+++ b/docs/docbook/configure.in
@@ -10,6 +10,8 @@ if test "x$PDFLATEX" = x; then
fi
AC_PATH_PROG(XMLTO, xmlto)
+AC_PATH_PROG(LATEX, latex)
+AC_PATH_PROG(DVIPS, dvips)
DOC_BUILD_DATE=`date '+%d-%m-%Y'`
AC_SUBST(DOC_BUILD_DATE)