2004-04-07 14:15:11 +04:00
#################################################################
2005-03-11 18:57:45 +03:00
# Makefile for Samba Documentation
2004-04-07 14:15:11 +04:00
# Authors:
# James Moore <jmoore@php.net>
# Gerald Carter <jerry@samba.org>
# Jelmer Vernooij <jelmer@samba.org>
2005-03-17 03:13:11 +03:00
i n c l u d e M a k e f i l e . s e t t i n g s
2004-04-07 14:15:11 +04:00
2004-06-20 16:43:16 +04:00
# Docs to build
2005-03-16 20:14:05 +03:00
MAIN_DOCS = $( patsubst %/index.xml,%,$( wildcard */index.xml) )
2005-05-06 02:38:51 +04:00
MANPAGES3 = $( wildcard $( MANPAGEDIR3) /*.?.xml)
2005-06-13 04:48:46 +04:00
export TEXINPUTS = xslt/latex:.:
2004-06-20 16:43:16 +04:00
2004-04-07 14:15:11 +04:00
# Lists of files to process
LATEX_FIGURES = xslt/figures/caution.pdf xslt/figures/important.pdf xslt/figures/note.pdf xslt/figures/tip.pdf xslt/figures/warning.pdf
2005-05-06 02:38:51 +04:00
MANPAGES_PLUCKER = $( patsubst $( MANPAGEDIR3) /%.xml,$( PLUCKERDIR) /%.pdb,$( MANPAGES3) )
2004-06-20 16:43:16 +04:00
2005-03-16 20:14:05 +03:00
DATETIME := $( shell date +%Y%m%d%H%M%S)
2006-12-27 04:30:39 +03:00
i f e q ( $( PROFILE ) , Y )
XSLTPROC += --profile --load-trace --timing
e n d i f
2005-01-29 23:05:52 +03:00
i f n d e f O U T P U T D I R
2005-03-17 03:13:11 +03:00
Makefile.settings : configure
2005-01-29 23:05:52 +03:00
@echo Makefile.settings not present, trying to run configure...
2006-12-27 04:30:39 +03:00
./configure
2005-01-29 23:05:52 +03:00
2007-03-28 04:15:16 +04:00
configure : configure .ac
2006-12-27 04:30:39 +03:00
@echo configure not present, trying to regenerate it...
autoreconf
2005-01-29 23:05:52 +03:00
e n d i f
2004-04-23 18:23:36 +04:00
help :
2004-04-07 14:15:11 +04:00
@echo "Supported make targets:"
2004-06-20 16:43:16 +04:00
@echo " release - Build the docs needed for a Samba release"
@echo " all - Build all docs that can be build using the utilities found by configure"
@echo " everything - Build all of the above"
2005-06-12 20:46:09 +04:00
@echo " pdf,tex,dvi,ps,manpages3,txt,pearson,fo,htmlhelp - Build specific output format"
2005-03-12 00:33:28 +03:00
@echo " html - Build multi-file HTML versions"
@echo " html-single - Build single-file HTML versions"
2005-06-12 20:46:09 +04:00
@echo " htmlman3 - Build HTML version of manpages"
2004-06-20 16:43:16 +04:00
@echo " undocumented - Output list of undocumented smb.conf options"
@echo " samples - Extract examples"
2005-06-11 00:29:09 +04:00
$(DOCBOOKDIR)/Samba3-ByExample.xml : $( filter -out Samba 3-ByExample /index .xml ,$ ( wildcard Samba 3-ByExample /*.xml ) )
$(DOCBOOKDIR)/Samba3-HOWTO.xml : $( filter -out Samba 3-HOWTO /index .xml ,$ ( wildcard Samba 3-HOWTO /*.xml ) ) Samba 3-HOWTO -attributions .xml
Samba3-HOWTO/manpages.xml : $( MANPAGEDIR 3) /smb .conf .5.xml
2005-05-06 02:38:51 +04:00
$(DOCBOOKDIR)/Samba3-Developers-Guide.xml : $( filter -out Samba 3-Developers -Guide /index .xml ,$ ( wildcard Samba 3-Developers -Guide /*.xml ) ) Samba 3-Developers -Guide -attributions .xml
$(DOCBOOKDIR)/Samba4-HOWTO.xml : $( filter -out Samba 4-HOWTO /index .xml ,$ ( wildcard Samba 4-HOWTO /*.xml ) ) Samba 4-HOWTO -attributions .xml
2004-06-20 16:43:16 +04:00
# Pseudo targets
2008-05-16 17:46:36 +04:00
all :: $( TARGETS )
everything :: manpages 3 pdf html -single html htmlman 3 txt ps fo htmlhelp pearson
release :: manpages 3 htmlman 3 html pdf
clean ::
2007-06-06 17:43:17 +04:00
@echo "Cleaning up..."
rm -rf $( OUTPUTDIR) /* $( DOCBOOKDIR)
2008-04-14 19:39:30 +04:00
rm -f $( patsubst %.svg,%.png,$( foreach DOC,$( MAIN_DOCS) ,$( $( DOC) -images-latex-dia) ) ) \
$( patsubst %.svg,%.pdf,$( foreach DOC,$( MAIN_DOCS) ,$( $( DOC) -images-latex-svg) ) ) \
2009-01-21 17:09:12 +03:00
$( patsubst %.svg,%.eps,$( foreach DOC,$( MAIN_DOCS) ,$( $( DOC) -images-latex-svg) ) ) \
$( patsubst %.svg,%.png,$( foreach DOC,$( MAIN_DOCS) ,$( $( DOC) -images-latex-svg) ) )
2008-04-24 23:40:51 +04:00
rm -f *-attributions.xml *.d *.tpt *.tex *.loc *.toc *.lof *.glo *.idx *.aux
2007-06-06 17:43:17 +04:00
rm -f *-images-html*
2008-05-27 20:40:14 +04:00
rm -f *-images-latex-* $( LATEX_FIGURES)
2007-06-06 17:43:17 +04:00
rm -f xslt/figures/*pdf
rm -f $( SMBDOTCONFDOC) /parameters.*.xml
rm -f $( addsuffix .*,$( MAIN_DOCS) )
2009-01-21 17:09:46 +03:00
rm -f build/catalog.xml
2004-04-07 14:15:11 +04:00
2004-06-20 16:43:16 +04:00
# Output format targets
2008-05-16 17:46:36 +04:00
pdf :: $( patsubst %,$ ( PDFDIR ) /%.pdf ,$ ( MAIN_DOCS ) )
dvi :: $( patsubst %,$ ( DVIDIR ) /%.dvi ,$ ( MAIN_DOCS ) )
ps :: $( patsubst %,$ ( PSDIR ) /%.ps ,$ ( MAIN_DOCS ) )
txt :: $( patsubst %,$ ( TXTDIR ) /%.txt ,$ ( MAIN_DOCS ) )
txt-chunks :: $( addsuffix -txt -chunks ,$ ( MAIN_DOCS ) )
fo :: $( patsubst %,$ ( FODIR ) /%.fo ,$ ( MAIN_DOCS ) )
fo-pdf :: $( patsubst %,$ ( FOPDFDIR ) /%.pdf ,$ ( MAIN_DOCS ) )
tex :: $( addsuffix .tex ,$ ( MAIN_DOCS ) )
texi :: $( patsubst %,$ ( TEXINFODIR ) /%.texi ,$ ( MAIN_DOCS ) )
texiinfo :: $( patsubst %,$ ( TEXINFODIR ) /%.info ,$ ( MAIN_DOCS ) )
manpages3 :: $( patsubst $ ( MANPAGEDIR 3) /%.xml ,$ ( OUTPUTDIR ) /manpages -3/%,$ ( MANPAGES 3) )
pearson :: $( PEARSONDIR ) /Samba 3-HOWTO .xml
pearson-verify :: $( PEARSONDIR ) /Samba 3-HOWTO .report .html
plucker :: $( patsubst %,$ ( PLUCKERDIR ) /%.pdb ,$ ( MAIN_DOCS ) )
htmlman3 :: $( patsubst $ ( MANPAGEDIR 3) /%.xml ,$ ( HTMLDIR ) /manpages -3/%.html ,$ ( MANPAGES 3) ) $( HTMLDIR ) /manpages -3/index .html
html-single :: $( patsubst %,$ ( HTMLDIR ) /%.html ,$ ( MAIN_DOCS ) )
html :: $( patsubst %,$ ( HTMLDIR ) /%/index .html ,$ ( MAIN_DOCS ) ) $( HTMLDIR ) /index .html
htmlhelp :: $( addprefix $ ( HTMLHELPDIR ) /,$ ( MAIN_DOCS ) )
validate :: $( addsuffix -validate ,$ ( MAIN_DOCS ) )
test :: validate
check :: validate
.PHONY : test check validate
2004-04-07 14:15:11 +04:00
2004-06-20 16:43:16 +04:00
# Intermediate docbook docs
2005-03-29 23:24:12 +04:00
#
2004-06-26 19:43:54 +04:00
$(DOCBOOKDIR)/%.xml : %/index .xml xslt /expand -sambadoc .xsl
2005-08-20 17:11:52 +04:00
@echo " Converting Samba-specific tags for $* ... "
2005-06-30 06:17:59 +04:00
@mkdir -p $( @D)
2008-05-16 17:31:54 +04:00
@$( XSLTPROC) --stringparam latex.imagebasedir " $* / " --stringparam noreference 0 --xinclude --output $@ xslt/expand-sambadoc.xsl $<
2004-04-07 14:15:11 +04:00
2005-05-06 02:38:51 +04:00
$(DOCBOOKDIR)/manpages-3/%.xml : $( MANPAGEDIR 3) /%.xml xslt /expand -sambadoc .xsl
2005-06-30 06:17:59 +04:00
@mkdir -p $( @D)
2008-04-24 23:40:51 +04:00
$( XSLTPROC) --xinclude --stringparam noreference 0 --output $@ xslt/expand-sambadoc.xsl $<
2005-05-06 02:38:51 +04:00
2005-05-06 05:39:51 +04:00
$(DOCBOOKDIR)/manpages-3/index.xml : $( MANPAGES 3) xslt /manpage -summary .xsl
2005-06-30 06:17:59 +04:00
@mkdir -p $( @D)
2004-06-20 16:43:16 +04:00
echo "<article><variablelist>" > $@
2005-05-06 05:39:51 +04:00
$( XSLTPROC) xslt/manpage-summary.xsl $( MANPAGES3) >> $@
2006-12-27 04:30:39 +03:00
@echo "</variablelist></article>" >> $@
2004-05-31 16:33:28 +04:00
2004-06-20 16:43:16 +04:00
# HTML docs
2004-06-26 19:43:54 +04:00
$(HTMLDIR)/index.html : htmldocs .html
2005-06-30 06:17:59 +04:00
@mkdir -p $( @D)
2004-05-31 16:33:28 +04:00
cp $< $@
2004-04-27 02:46:47 +04:00
2005-03-17 03:13:11 +03:00
$(HTMLDIR)/%/index.html : $( DOCBOOKDIR ) /%.xml $( HTMLDIR ) /%/samba .css xslt /html -chunk .xsl %-images -html -chunks
2005-06-30 06:17:59 +04:00
@mkdir -p $( @D)
2004-06-20 16:43:16 +04:00
$( XSLTPROC) --stringparam base.dir " $( HTMLDIR) / $* / " xslt/html-chunk.xsl $<
2004-04-07 14:15:11 +04:00
2004-06-20 16:43:16 +04:00
# Single large HTML files
$(OUTPUTDIR)/%/samba.css : xslt /html /samba .css
2005-06-30 06:17:59 +04:00
@mkdir -p $( @D)
2004-06-20 16:43:16 +04:00
cp $< $@
2004-04-07 14:15:11 +04:00
2005-03-17 03:13:11 +03:00
$(patsubst %,$(HTMLDIR)/%.html,$(MAIN_DOCS)) : $( HTMLDIR ) /%.html : %-images -html -single
2004-07-10 22:10:36 +04:00
$(HTMLDIR)/%.html : $( DOCBOOKDIR ) /%.xml $( HTMLDIR ) /samba .css xslt /html .xsl
2004-06-20 16:43:16 +04:00
$( XSLTPROC) --output $@ xslt/html.xsl $<
2004-04-07 14:15:11 +04:00
2005-03-11 19:26:19 +03:00
# Attributions
2004-06-20 16:43:16 +04:00
%-attributions.xml :
2005-06-30 06:17:59 +04:00
@echo " Generating attributions file $@ from $* / "
2007-06-06 17:43:17 +04:00
@cp -f templates/attributions.xml $@
2008-05-16 17:31:54 +04:00
@$( XSLTPROC) --xinclude -o $@ xslt/generate-attributions.xsl $* /index.xml
2004-04-07 14:15:11 +04:00
# Text files
2004-06-26 19:43:54 +04:00
$(TXTDIR)/%.txt : $( HTMLDIR ) /%.html
2005-06-30 06:17:59 +04:00
@mkdir -p $( @D)
2004-05-15 20:09:50 +04:00
$( HTML2TEXT) -nobs -style pretty -o $@ $<
2004-04-07 14:15:11 +04:00
# Tex files
2005-06-13 04:48:46 +04:00
%.tex : %/index .xml xslt /latex .xsl
2005-06-30 06:17:59 +04:00
@echo " Generating $@ ... "
@mkdir -p $( @D)
2008-05-16 17:31:54 +04:00
@$( XSLTPROC) $( DB2LATEX_ARGS) --stringparam latex.imagebasedir " $* / " --xinclude --output $@ xslt/latex.xsl $<
2004-04-07 14:15:11 +04:00
2004-06-26 19:43:54 +04:00
$(PDFDIR)/%.pdf : %.pdf
2005-06-30 06:17:59 +04:00
@mkdir -p $( @D)
2004-06-26 19:43:54 +04:00
cp $< $@
2008-05-27 20:40:14 +04:00
%.idx : %.tex $( LATEX_FIGURES )
2004-07-01 22:27:46 +04:00
-$( PDFLATEX) $<
2004-09-04 17:13:48 +04:00
%.ind : %.idx
$( MAKEINDEX) $<
2005-03-17 03:13:11 +03:00
# Dependency files
%.d : $( DOCBOOKDIR ) /%.xml xslt /generate -dependencies .xsl
2005-06-30 06:17:59 +04:00
@echo " Generating dependency file for $* "
2008-05-16 17:31:54 +04:00
@$( XSLTPROC) --novalid \
2005-03-17 03:13:11 +03:00
--stringparam txtbasedir " $( TXTDIR) / $* / " \
--stringparam target " $* " \
-o $@ xslt/generate-dependencies.xsl $<
2008-04-14 19:39:30 +04:00
@echo " $* -images-latex-svg = \$ $( wildcard \$ $( addsuffix .svg, \$ $( $* -images-latex) ) ) " >> $@
2005-03-17 03:13:11 +03:00
@echo " $* -images-latex-eps: \$ $( addsuffix .eps, \$ $( $* -images-latex) ) " >> $@
2008-04-14 19:39:30 +04:00
@echo " $* -images-latex-pdf: \$ $( patsubst %.svg, %.pdf, \$ $( $* -images-latex-svg) ) " >> $@
@echo " $* -images-latex-png: \$ $( filter-out \$ $( patsubst %.svg,%.png,\$ $( $* -images-latex-svg) ) , \$ $( addsuffix .png, \$ $( $* -images-latex) ) ) " >> $@
2005-06-14 00:25:32 +04:00
2005-03-17 03:13:11 +03:00
@echo >> $@
@echo " \$ $( HTMLDIR) /%: $* /% " >> $@
2005-07-05 01:36:46 +04:00
@echo " @mkdir -p \$ $( @D) " >> $@
@echo " @cp \$ $< \$ $@ " >> $@
2005-03-17 03:13:11 +03:00
@echo >> $@
@echo " \$ $( HTMLDIR) / $* /%: $* /% " >> $@
2005-07-05 01:36:46 +04:00
@echo " @mkdir -p \$ $( @D) " >> $@
@echo " @cp \$ $< \$ $@ " >> $@
2005-03-17 03:13:11 +03:00
@echo >> $@
@echo " \$ $( HTMLHELPDIR) / $* /%: $* /% " >> $@
2005-07-05 01:36:46 +04:00
@echo " @mkdir -p \$ $( @D) " >> $@
@echo " @cp \$ $< \$ $@ " >> $@
2005-03-17 03:13:11 +03:00
@echo >> $@
@echo " $* -images-html-single: \$ $( addprefix \$ $( HTMLDIR) /, \$ $( $* -images-html) ) " >> $@
@echo " $* -images-html-chunks: \$ $( addprefix \$ $( HTMLDIR) /$* /, \$ $( $* -images-html) ) " >> $@
@echo " $* -images-htmlhelp: \$ $( addprefix \$ $( HTMLHELPDIR) /$* /, \$ $( $* -images-html) ) " >> $@
2005-03-29 23:24:12 +04:00
i f d e f O U T P U T D I R
i f n e q ( $( MAKECMDGOALS ) , c l o b b e r )
2006-12-27 04:30:39 +03:00
- i n c l u d e $( addsuffix .d ,$ ( MAIN_DOCS ) )
2005-03-17 03:13:11 +03:00
e n d i f
2005-03-29 23:24:12 +04:00
e n d i f
2005-03-17 03:13:11 +03:00
2004-09-04 17:13:48 +04:00
# Adobe PDF files
2008-05-27 20:40:14 +04:00
%.pdf : %.tex %.ind $( LATEX_FIGURES ) %-images -latex -png %-images -latex -pdf
2008-04-14 19:39:30 +04:00
-$( PDFLATEX) $<
-$( PDFLATEX) $<
-$( PDFLATEX) $<
2004-04-07 14:15:11 +04:00
-$( PDFLATEX) $<
2005-03-17 03:13:11 +03:00
$( THUMBPDF) --quiet $* .pdf
2004-04-07 14:15:11 +04:00
-$( PDFLATEX) $<
# DVI files
2004-06-26 19:43:54 +04:00
$(DVIDIR)/%.dvi : %.dvi
2005-06-30 06:17:59 +04:00
@mkdir -p $( @D)
2006-12-27 04:30:39 +03:00
cp $< $@
2004-06-26 19:43:54 +04:00
2005-03-17 03:13:11 +03:00
%.dvi : %.tex %.idx %-images -latex -eps
2004-07-01 22:27:46 +04:00
-$( LATEX) $<
2004-09-05 16:36:21 +04:00
2008-04-14 19:39:30 +04:00
%.eps : %.svg
$( INKSCAPE) -z -f $< --export-eps= $@
%.png : %.svg
$( INKSCAPE) -z -f $< --export-png= $@
2005-06-14 00:25:32 +04:00
2008-04-14 19:39:30 +04:00
#%.pdf: %.svg
# $(INKSCAPE) -z -f $< --export-pdf=$@
2005-06-17 00:37:51 +04:00
2005-06-14 00:25:32 +04:00
%.pdf : %.eps
$( EPSTOPDF) $<
2004-04-07 14:15:11 +04:00
%.eps : %.png
$( PNGTOPNM) $< | $( PNMTOPS) > $@
# PostScript files
2004-06-26 19:43:54 +04:00
$(PSDIR)/%.ps : $( DVIDIR ) /%.dvi
2005-06-30 06:17:59 +04:00
@mkdir -p $( @D)
2004-04-07 14:15:11 +04:00
$( DVIPS) -o $@ $<
2004-06-14 17:47:11 +04:00
# Fo
2004-06-26 19:43:54 +04:00
$(FODIR)/%.fo : $( DOCBOOKDIR ) /%.xml
2005-06-30 06:17:59 +04:00
@mkdir -p $( @D)
2005-03-20 22:20:20 +03:00
$( XSLTPROC) --output $@ xslt/fo.xsl $<
2004-06-14 17:47:11 +04:00
2005-02-10 11:51:11 +03:00
# PDF thru Fo
$(FOPDFDIR)/%.pdf : $( FODIR ) /%.fo
2005-06-30 06:17:59 +04:00
@mkdir -p $( @D)
2005-03-13 21:25:08 +03:00
JAVA_OPTS = -Xmx250m $( FOP) -q -d $< -pdf $@
2005-02-10 11:51:11 +03:00
2005-03-17 03:13:11 +03:00
$(HTMLHELPDIR)/% : $( DOCBOOKDIR ) /%.xml %-images -htmlhelp
$( XSLTPROC) --stringparam htmlhelp.chm $* .chm \
--stringparam manifest.in.base.dir " $@ / " \
--stringparam base.dir " $@ / " \
http://docbook.sourceforge.net/release/xsl/current/htmlhelp/htmlhelp.xsl $<
2004-04-27 02:46:47 +04:00
2004-06-20 16:43:16 +04:00
# Plucker docs
2004-12-07 19:54:57 +03:00
$(PLUCKERDIR)/%.pdb : $( HTMLDIR ) /%.html
2005-06-30 06:17:59 +04:00
@mkdir -p $( @D)
2005-03-11 18:57:45 +03:00
$( PLUCKERBUILD) -v -V 2 --stayonhost --zlib-compression -f $* -p $( PLUCKERDIR) file:$<
2004-04-07 14:15:11 +04:00
2005-03-11 19:26:19 +03:00
# Texinfo docs
$(TEXINFODIR)/%.texi : $( DOCBOOKDIR ) /%.xml
2005-06-30 06:17:59 +04:00
@mkdir -p $( @D)
2005-03-11 19:26:19 +03:00
cd $( @D) && $( DB2TEXI) $( shell pwd ) /$<
$(TEXINFODIR)/%.info : $( TEXINFODIR ) /%.texi
$( MAKEINFO) --no-validate --force -o $@ " $< "
2004-04-07 14:15:11 +04:00
# Manpages
2005-05-06 02:38:51 +04:00
$(MANPAGEDIR3)/smb.conf.5.xml : $( SMBDOTCONFDOC ) /parameters .all .xml $( SMBDOTCONFDOC ) /parameters .service .xml $( SMBDOTCONFDOC ) /parameters .global .xml
2004-04-07 14:15:11 +04:00
2005-05-14 19:18:37 +04:00
$(SMBDOTCONFDOC)/parameters.all.xml : $( wildcard $ ( SMBDOTCONFDOC ) /*/*.xml ) $( SMBDOTCONFDOC ) /generate -file -list .sh
2004-06-20 16:43:16 +04:00
$( SMBDOTCONFDOC) /generate-file-list.sh $( SMBDOTCONFDOC) > $@
2004-04-07 14:15:11 +04:00
2004-06-20 16:43:16 +04:00
$(SMBDOTCONFDOC)/parameters.global.xml : $( SMBDOTCONFDOC ) /parameters .all .xml $( SMBDOTCONFDOC ) /generate -context .xsl
2005-06-30 06:17:59 +04:00
@echo "Generating list of global smb.conf options"
2006-12-27 04:30:39 +03:00
$( XSLTPROC) --xinclude --param smb.context "'G'" --output $( SMBDOTCONFDOC) /parameters.global.xml $( SMBDOTCONFDOC) /generate-context.xsl $<
2004-04-07 14:15:11 +04:00
2004-06-20 16:43:16 +04:00
$(SMBDOTCONFDOC)/parameters.service.xml : $( SMBDOTCONFDOC ) /parameters .all .xml $( SMBDOTCONFDOC ) /generate -context .xsl
2005-06-30 06:17:59 +04:00
@echo "Generating list of share-mode smb.conf options"
2006-12-27 04:30:39 +03:00
$( XSLTPROC) --xinclude --param smb.context "'S'" --output $( SMBDOTCONFDOC) /parameters.service.xml $( SMBDOTCONFDOC) /generate-context.xsl $<
2004-04-07 14:15:11 +04:00
2005-05-06 02:38:51 +04:00
$(OUTPUTDIR)/% : $( DOCBOOKDIR ) /%.xml xslt /man .xsl
2005-06-30 06:17:59 +04:00
@mkdir -p $( @D)
2004-04-07 14:15:11 +04:00
$( XSLTPROC) --output $@ xslt/man.xsl $<
2005-01-07 19:04:34 +03:00
# Individual smb.conf parameters
smb.conf-chunks : $( patsubst $ ( SMBDOTCONFDOC ) /%.xml ,$ ( HTMLDIR ) /smb .conf /%.html ,$ ( wildcard $ ( SMBDOTCONFDOC ) /*/*.xml ) )
$(HTMLDIR)/smb.conf/%.html : $( SMBDOTCONFDOC ) /%.xml
2005-06-30 06:17:59 +04:00
@mkdir -p $( @D)
2005-01-07 19:04:34 +03:00
$( XSLTPROC) --output $@ xslt/smb.conf-html.xsl $<
2004-06-20 16:43:16 +04:00
# Pearson compatible XML
2004-10-05 17:20:54 +04:00
$(PEARSONDIR)/%.xml : %/index .xml xslt /pearson .xsl
2005-06-30 06:17:59 +04:00
@mkdir -p $( @D)
2004-10-05 17:20:54 +04:00
$( XSLTPROC) --xinclude --output $@ xslt/sambadoc2pearson.xsl $<
2004-06-16 00:12:16 +04:00
2004-06-16 20:20:05 +04:00
$(PEARSONDIR)/%.report.html : $( PEARSONDIR ) /%.xml
2005-06-30 06:17:59 +04:00
@mkdir -p $( @D)
2005-03-13 01:34:38 +03:00
-$( XMLLINT) --valid --noout $< 2> $@
2004-06-16 20:20:05 +04:00
2004-06-20 16:43:16 +04:00
# Validation verification
2005-03-13 04:38:40 +03:00
%-validate : %/index .xml
2005-03-17 03:13:11 +03:00
cd $( <D) && $( XMLLINT) --xinclude --noent --postvalid --noout $( <F)
2004-05-21 00:33:00 +04:00
2004-04-07 14:15:11 +04:00
# Find undocumented parameters
2004-06-20 16:43:16 +04:00
undocumented : $( SMBDOTCONFDOC ) /parameters .all .xml scripts /find_missing_doc .pl scripts /find_missing_manpages .pl
2006-12-27 04:30:39 +03:00
$( PERL) scripts/find_missing_doc.pl $( SRCDIR)
$( PERL) scripts/find_missing_manpages.pl $( SRCDIR)
2004-04-07 14:15:11 +04:00
2005-06-11 00:29:09 +04:00
samples : $( DOCBOOKDIR ) /Samba 3-HOWTO .xml xslt /extract -examples .xsl scripts /indent -smb .conf .pl
2005-06-30 06:17:59 +04:00
@mkdir -p $( EXAMPLESDIR)
2004-06-20 16:43:16 +04:00
$( XSLTPROC) --xinclude xslt/extract-examples.xsl $< > /dev/null 2> examples/README
2004-04-07 14:15:11 +04:00
for I in examples/*.conf; do { ./scripts/indent-smb.conf.pl < $$ I > $$ I.tmp; mv $$ I.tmp $$ I; } done
2004-06-20 16:43:16 +04:00
# Archiving
2004-11-18 14:03:57 +03:00
archive : pdf
2005-06-30 06:17:59 +04:00
@mkdir -p $( ARCHIVEDIR)
2005-06-11 00:29:09 +04:00
cp $( PDFDIR) /Samba3-HOWTO.pdf $( ARCHIVEDIR) /TOSHARG-$( DATETIME) .pdf
cp $( PDFDIR) /Samba3-ByExample.pdf $( ARCHIVEDIR) /S3bE-$( DATETIME) .pdf
2004-06-20 16:43:16 +04:00
# XSL scripts
2005-06-13 14:23:53 +04:00
xslt/html.xsl : xslt /html -common .xsl
xslt/html-chunk.xsl : xslt /html -common .xsl
xslt/latex.xsl :
xslt/expand-sambadoc.xsl :
2004-06-20 16:43:16 +04:00
xslt/generate-attributions.xsl :
xslt/man.xsl :
xslt/pearson.xsl :
2004-07-01 22:27:46 +04:00
2008-05-21 19:55:20 +04:00
distclean clobber :: clean
2009-01-21 13:47:46 +03:00
rm -f Makefile.settings config.status config.log
2009-01-21 13:41:14 +03:00
realdistclean :: distclean
rm -f configure
2007-08-16 22:02:07 +04:00
rm -rf autom4te.cache
2005-03-11 19:26:19 +03:00
# Always keep intermediate files if we can
2004-07-01 22:27:46 +04:00
.SECONDARY :
2008-05-27 20:40:14 +04:00
.PHONY : clean clobber archive release everything all
2006-12-27 04:30:39 +03:00