summaryrefslogtreecommitdiff
path: root/docs/Makefile.in
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2004-06-14 13:47:11 +0000
committerGerald W. Carter <jerry@samba.org>2008-04-23 08:45:54 -0500
commitcce465adf3417b190e7a3886d44b5bf46cec3563 (patch)
treee4416989fca6a8a5a042f690250f58d1ab84a3af /docs/Makefile.in
parent7a9277ae52e22dca5b4d56f33a33355799654c84 (diff)
downloadsamba-cce465adf3417b190e7a3886d44b5bf46cec3563.tar.gz
samba-cce465adf3417b190e7a3886d44b5bf46cec3563.tar.bz2
samba-cce465adf3417b190e7a3886d44b5bf46cec3563.zip
- Add notes about using catalogs (speeds up the docs build!)
- Support building FO and Windows Help files (see: http://samba.org/~jelmer/samba-chm.png http://samba.org/~jelmer/samba-chm1.png http://samba.org/~jelmer/Samba-HOWTO-Collection.chm ) (This used to be commit 8669bca66c7d6dcd588542f975aba395b3476e09)
Diffstat (limited to 'docs/Makefile.in')
-rw-r--r--docs/Makefile.in48
1 files changed, 29 insertions, 19 deletions
diff --git a/docs/Makefile.in b/docs/Makefile.in
index 39f3da14b6..f5a96bf7ba 100644
--- a/docs/Makefile.in
+++ b/docs/Makefile.in
@@ -32,24 +32,25 @@ LATEX += --interaction nonstopmode
endif
# Paths
-TOPDIR = $(shell pwd)
-OUTPUTDIR = $(TOPDIR)/output
+OUTPUTDIR = output
ARCHIVEDIR = $(OUTPUTDIR)/archive
SRCDIR = @SAMBASOURCEDIR@
MANDIR = $(OUTPUTDIR)/manpages
EPSTOPDF = @EPSTOPDF@
-MANPAGEDIR = $(TOPDIR)/manpages
-HOWTODIR = $(TOPDIR)/howto
-GUIDEDOC = $(TOPDIR)/guide
-DEVDOCDIR = $(TOPDIR)/devel
+MANPAGEDIR = manpages
+HOWTODIR = howto
+GUIDEDOC = guide
+DEVDOCDIR = /devel
MAKEINDEX = @MAKEINDEX@
IMAGEPROJDIR = $(HOWTODIR)/imagefiles
IMAGEGUIDEDIR = $(GUIDEDOC)/images
-EXAMPLESDIR = $(TOPDIR)/examples
-SMBDOTCONFDOC = $(TOPDIR)/smbdotconf
+EXAMPLESDIR = examples
+SMBDOTCONFDOC = smbdotconf
PSDIR = $(OUTPUTDIR)
PDFDIR = $(OUTPUTDIR)
DVIDIR = $(OUTPUTDIR)
+FODIR = $(OUTPUTDIR)
+HTMLHELPDIR = $(OUTPUTDIR)/htmlhelp
VALIDATEDIR = $(OUTPUTDIR)/validate
TXTDIR = $(OUTPUTDIR)/textdocs
HTMLDIR=$(OUTPUTDIR)/htmldocs
@@ -104,6 +105,8 @@ ps: $(PSDIR) $(PSDIR)/Samba-HOWTO-Collection.ps $(PSDIR)/Samba-Developers-Guide.
txt: $(TXTDIR) $(TXTDIR)/Samba-HOWTO-Collection.txt $(TXTDIR)/Samba-Developers-Guide.txt
+fo: $(FODIR) $(FODIR)/Samba-HOWTO-Collection.fo $(FODIR)/Samba-Developers-Guide.fo
+
htmlman: $(HTMLDIR) $(MANPAGES_HTML) $(HTMLDIR)/samba.css
html-single: $(HTMLDIR) $(HTMLDIR)/samba.css $(HTMLDIR)/Samba-HOWTO-Collection.html $(HTMLDIR)/Samba-Developers-Guide.html $(HTMLDIR)/Samba-Guide.html
@@ -211,6 +214,20 @@ $(PSDIR)/%.ps: $(DVIDIR)/%.dvi
xslt/figures/%.pdf: xslt/figures/%.eps
$(EPSTOPDF) $<
+# Fo
+$(FODIR):
+ mkdir $(FODIR)
+
+$(FODIR)/%.fo: %.xml $(FODIR)
+ $(XSLTPROC) --output $@ http://docbook.sourceforge.net/release/xsl/current/fo/docbook.xsl $<
+
+$(HTMLHELPDIR):
+ mkdir $(HTMLHELPDIR)
+
+$(HTMLHELPDIR)/%: %.xml $(HTMLHELPDIR)
+ -mkdir $@
+ $(XSLTPROC) --stringparam base.dir "$@/" http://docbook.sourceforge.net/release/xsl/current/htmlhelp/htmlhelp.xsl $<
+
# Single large HTML files
$(HTMLDIR):
@@ -247,25 +264,18 @@ $(PLUCKERDIR)/%.pdb: $(HTMLDIR)/%.html
# Manpages
$(SMBDOTCONFDOC)/parameters.all.xml: $(SMBDOTCONFDOC)/generate-file-list.sh
- @cd $(SMBDOTCONFDOC) && \
- /bin/sh generate-file-list.sh >parameters.all.xml && \
- cd $(OUTPUTDIR)
+ @cd $(SMBDOTCONFDOC) && /bin/sh generate-file-list.sh >parameters.all.xml
$(SMBDOTCONFDOC)/parameters.global.xml: $(SMBDOTCONFDOC)/parameters.all.xml $(SMBDOTCONFDOC)/generate-context.xsl
- @cd $(SMBDOTCONFDOC) && \
- $(XSLTPROC) --xinclude \
- --param smb.context "'G'" \
+ $(XSLTPROC) --xinclude --param smb.context "'G'" \
--output parameters.global.xml \
- generate-context.xsl parameters.all.xml && \
- cd $(OUTPUTDIR)
+ $(SMBDOTCONFDOC)/generate-context.xsl $(SMBDOTCONFDOC)/parameters.all.xml
$(SMBDOTCONFDOC)/parameters.service.xml: $(SMBDOTCONFDOC)/parameters.all.xml $(SMBDOTCONFDOC)/generate-context.xsl
- @cd $(SMBDOTCONFDOC) && \
$(XSLTPROC) --xinclude \
--param smb.context "'S'" \
--output parameters.service.xml \
- generate-context.xsl parameters.all.xml && \
- cd $(OUTPUTDIR)
+ $(SMBDOTCONFDOC)/generate-context.xsl $(SMBDOTCONFDOC)/parameters.all.xml
smb.conf.5.xml: $(SMBDOTCONFDOC)/smb.conf.5.xml $(SMBDOTCONFDOC)/parameters.all.xml \
$(SMBDOTCONFDOC)/parameters.global.xml $(SMBDOTCONFDOC)/parameters.service.xml