| 1 | #################################################################
|
|---|
| 2 | # Makefile for Samba Documentation
|
|---|
| 3 | # Authors:
|
|---|
| 4 | # James Moore <[email protected]>
|
|---|
| 5 | # Gerald Carter <[email protected]>
|
|---|
| 6 | # Jelmer Vernooij <[email protected]>
|
|---|
| 7 | include Makefile.settings
|
|---|
| 8 |
|
|---|
| 9 | # Docs to build
|
|---|
| 10 | MAIN_DOCS = $(patsubst %/index.xml,%,$(wildcard */index.xml))
|
|---|
| 11 | MANPAGES3 = $(wildcard $(MANPAGEDIR3)/*.?.xml)
|
|---|
| 12 | export TEXINPUTS=xslt/latex:.:
|
|---|
| 13 |
|
|---|
| 14 | # Lists of files to process
|
|---|
| 15 | LATEX_FIGURES = xslt/figures/caution.pdf xslt/figures/important.pdf xslt/figures/note.pdf xslt/figures/tip.pdf xslt/figures/warning.pdf
|
|---|
| 16 | MANPAGES_PLUCKER = $(patsubst $(MANPAGEDIR3)/%.xml,$(PLUCKERDIR)/%.pdb,$(MANPAGES3))
|
|---|
| 17 |
|
|---|
| 18 | DATETIME := $(shell date +%Y%m%d%H%M%S)
|
|---|
| 19 |
|
|---|
| 20 | ifeq ($(PROFILE), Y)
|
|---|
| 21 | XSLTPROC += --profile --load-trace --timing
|
|---|
| 22 | endif
|
|---|
| 23 |
|
|---|
| 24 | ifndef OUTPUTDIR
|
|---|
| 25 | Makefile.settings: configure
|
|---|
| 26 | @echo Makefile.settings not present, trying to run configure...
|
|---|
| 27 | ./configure
|
|---|
| 28 |
|
|---|
| 29 | configure: configure.ac
|
|---|
| 30 | @echo configure not present, trying to regenerate it...
|
|---|
| 31 | autoreconf
|
|---|
| 32 | endif
|
|---|
| 33 |
|
|---|
| 34 | help:
|
|---|
| 35 | @echo "Supported make targets:"
|
|---|
| 36 | @echo " release - Build the docs needed for a Samba release"
|
|---|
| 37 | @echo " all - Build all docs that can be build using the utilities found by configure"
|
|---|
| 38 | @echo " everything - Build all of the above"
|
|---|
| 39 | @echo " pdf,tex,dvi,ps,manpages3,txt,pearson,fo,htmlhelp - Build specific output format"
|
|---|
| 40 | @echo " html - Build multi-file HTML versions"
|
|---|
| 41 | @echo " html-single - Build single-file HTML versions"
|
|---|
| 42 | @echo " htmlman3 - Build HTML version of manpages"
|
|---|
| 43 | @echo " undocumented - Output list of undocumented smb.conf options"
|
|---|
| 44 | @echo " samples - Extract examples"
|
|---|
| 45 |
|
|---|
| 46 | $(DOCBOOKDIR)/Samba3-ByExample.xml: $(filter-out Samba3-ByExample/index.xml,$(wildcard Samba3-ByExample/*.xml))
|
|---|
|
|---|