8
8
SPHINXOPTS = ${SPHINX_WARNINGS} -q
10
SPHINX_BUILDDIR = ${abs_srcdir}/docs
10
SPHINX_BUILDDIR = ${abs_top_srcdir}/docs
12
12
# Internal variables.
13
13
PAPEROPT_a4 = -D latex_paper_size=a4
14
14
PAPEROPT_letter = -D latex_paper_size=letter
15
ALLSPHINXOPTS = -c $(top_builddir)/docs $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) $(SPHINX_BUILDDIR)
15
ALLSPHINXOPTS = -c $(abs_top_builddir)/docs $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) $(SPHINX_BUILDDIR)
17
17
.PHONY: clean-docs-check
19
-rm -rf docs/_build docs/doctrees man/.doctrees
19
-rm -rf $(abs_top_builddir)/docs/_build $(abs_top_builddir)/docs/doctrees $(abs_top_builddir)/man/.doctrees
21
21
.PHONY: help clean html dirhtml singlehtml pickle json htmlhelp qthelp devhelp epub latex latexpdf text man changes linkcheck doctest
24
@PYTHONPATH=$(SPHINX_BUILDDIR)/docs $(SPHINXBUILD) -b man $(ALLSPHINXOPTS) ${top_builddir}/man
23
man: $(top_builddir)/docs/conf.py
24
@PYTHONPATH=$(SPHINX_BUILDDIR) $(SPHINXBUILD) -b man $(ALLSPHINXOPTS) ${abs_top_builddir}/man
26
26
install-html-local: html-local
27
27
@$(MKDIR_P) $(htmldir)/html
28
28
@cp -r ${top_builddir}/html $(htmldir)/
30
html-local: docs/conf.py
30
html-local: $(top_builddir)/docs/conf.py
31
31
@PYTHONPATH=${top_srcdir}/docs $(SPHINXBUILD) -b html $(ALLSPHINXOPTS) ${top_builddir}/html
33
33
singlehtml: html-local
34
34
@PYTHONPATH=${top_srcdir}/docs $(SPHINXBUILD) -b singlehtml $(ALLSPHINXOPTS) $(SPHINX_BUILDDIR)/singlehtml
36
pickle: $(top_builddir)/docs/conf.py
37
37
PYTHONPATH=${top_srcdir}/docs $(SPHINXBUILD) -b pickle $(ALLSPHINXOPTS) $(SPHINX_BUILDDIR)/pickle
39
39
@echo "Build finished; now you can process the pickle files."
41
json: $(top_builddir)/docs/conf.py
42
42
PYTHONPATH=${top_srcdir}/docs $(SPHINXBUILD) -b json $(ALLSPHINXOPTS) $(SPHINX_BUILDDIR)/json
44
44
@echo "Build finished; now you can process the JSON files."
46
htmlhelp: docs/conf.py
46
htmlhelp: $(top_builddir)/docs/conf.py
47
47
PYTHONPATH=${top_srcdir}/docs $(SPHINXBUILD) -b htmlhelp $(ALLSPHINXOPTS) $(SPHINX_BUILDDIR)/htmlhelp
49
49
@echo "Build finished; now you can run HTML Help Workshop with the" \
50
50
".hhp project file in $(SPHINX_BUILDDIR)/htmlhelp."
52
epub: $(top_builddir)/docs/conf.py
53
53
PYTHONPATH=${top_srcdir}/docs $(SPHINXBUILD) -b epub $(ALLSPHINXOPTS) $(SPHINX_BUILDDIR)/epub
55
55
@echo "Build finished. The epub file is in $(SPHINX_BUILDDIR)/epub."
57
latex: $(top_builddir)/docs/conf.py
58
58
PYTHONPATH=${top_srcdir}/docs $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(SPHINX_BUILDDIR)/latex
60
60
@echo "Build finished; the LaTeX files are in $(SPHINX_BUILDDIR)/latex."
67
67
make -C $(SPHINX_BUILDDIR)/latex all-pdf
68
68
@echo "pdflatex finished; the PDF files are in $(SPHINX_BUILDDIR)/latex."
70
text: $(top_builddir)/docs/conf.py
71
71
@PYTHONPATH=${top_srcdir}/docs $(SPHINXBUILD) -b text $(ALLSPHINXOPTS) $(SPHINX_BUILDDIR)/text
73
changes: $(top_builddir)/docs/conf.py
74
74
@PYTHONPATH=${top_srcdir}/docs $(SPHINXBUILD) -b changes $(ALLSPHINXOPTS) $(SPHINX_BUILDDIR)/changes
76
linkcheck: docs/conf.py
76
linkcheck: $(top_builddir)/docs/conf.py
77
77
PYTHONPATH=${top_srcdir}/docs $(SPHINXBUILD) -b linkcheck $(ALLSPHINXOPTS) $(SPHINX_BUILDDIR)/linkcheck
79
doctest: $(top_builddir)/docs/conf.py
80
80
PYTHONPATH=${top_srcdir}/docs $(SPHINXBUILD) -b doctest $(ALLSPHINXOPTS) $(SPHINX_BUILDDIR)/doctest
81
81
@echo "Testing of doctests in the sources finished, look at the " \
82
82
"results in $(SPHINX_BUILDDIR)/doctest/output.txt."
84
noinst_PROGRAMS+= docs/libgearman/examples/gearman_client_do_background_example
85
noinst_PROGRAMS+= docs/libgearman/examples/gearman_client_do_example
86
noinst_PROGRAMS+= docs/libgearman/examples/gearman_execute_example
87
noinst_PROGRAMS+= docs/libgearman/examples/gearman_execute_partition
89
docs_libgearman_examples_gearman_execute_example_SOURCES= docs/libgearman/examples/gearman_execute_example.c
90
docs_libgearman_examples_gearman_execute_example_LDADD= libgearman/libgearman.la
92
docs_libgearman_examples_gearman_execute_partition_SOURCES= docs/libgearman/examples/gearman_execute_partition.c
93
docs_libgearman_examples_gearman_execute_partition_LDADD= libgearman/libgearman.la
95
docs_libgearman_examples_gearman_client_do_example_SOURCES= docs/libgearman/examples/gearman_client_do_example.c
96
docs_libgearman_examples_gearman_client_do_example_LDADD= libgearman/libgearman.la
98
docs_libgearman_examples_gearman_client_do_background_example_SOURCES= docs/libgearman/examples/gearman_client_do_background_example.c
99
docs_libgearman_examples_gearman_client_do_background_example_LDADD= libgearman/libgearman.la