include.am 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264
  1. # vim:ft=automake
  2. # included from Top Level Makefile.am
  3. # All paths should be given relative to the root
  4. EXTRA_DIST+= \
  5. docs/conf.py \
  6. docs/*.rst
  7. # Makefile for Sphinx documentation
  8. #
  9. SPHINXOPTS = ${SPHINX_WARNINGS} -D release=${PANDORA_RELEASE_VERSION}
  10. PAPER =
  11. SPHINX_BUILDDIR = ${top_builddir}/docs
  12. # Internal variables.
  13. PAPEROPT_a4 = -D latex_paper_size=a4
  14. PAPEROPT_letter = -D latex_paper_size=letter
  15. ALLSPHINXOPTS = -d $(SPHINX_BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) ${top_srcdir}/docs
  16. .PHONY: help clean html dirhtml singlehtml pickle json htmlhelp qthelp devhelp epub latex latexpdf text man changes linkcheck doctest
  17. man_MANS+= \
  18. docs/man/gearadmin.1 \
  19. docs/man/gearman.1 \
  20. docs/man/gearman_bugreport.3 \
  21. docs/man/gearman_client_add_options.3 \
  22. docs/man/gearman_client_add_server.3 \
  23. docs/man/gearman_client_add_servers.3 \
  24. docs/man/gearman_client_add_task.3 \
  25. docs/man/gearman_client_add_task_background.3 \
  26. docs/man/gearman_client_add_task_high.3 \
  27. docs/man/gearman_client_add_task_high_background.3 \
  28. docs/man/gearman_client_add_task_low.3 \
  29. docs/man/gearman_client_add_task_low_background.3 \
  30. docs/man/gearman_client_add_task_status.3 \
  31. docs/man/gearman_client_clear_fn.3 \
  32. docs/man/gearman_client_clone.3 \
  33. docs/man/gearman_client_context.3 \
  34. docs/man/gearman_client_create.3 \
  35. docs/man/gearman_client_do.3 \
  36. docs/man/gearman_client_do_background.3 \
  37. docs/man/gearman_client_do_high.3 \
  38. docs/man/gearman_client_do_high_background.3 \
  39. docs/man/gearman_client_do_job_handle.3 \
  40. docs/man/gearman_client_do_low.3 \
  41. docs/man/gearman_client_do_low_background.3 \
  42. docs/man/gearman_client_do_status.3 \
  43. docs/man/gearman_client_echo.3 \
  44. docs/man/gearman_client_errno.3 \
  45. docs/man/gearman_client_error.3 \
  46. docs/man/gearman_client_free.3 \
  47. docs/man/gearman_client_job_status.3 \
  48. docs/man/gearman_client_options.3 \
  49. docs/man/gearman_client_remove_options.3 \
  50. docs/man/gearman_client_remove_servers.3 \
  51. docs/man/gearman_client_run_tasks.3 \
  52. docs/man/gearman_client_set_complete_fn.3 \
  53. docs/man/gearman_client_set_context.3 \
  54. docs/man/gearman_client_set_created_fn.3 \
  55. docs/man/gearman_client_set_data_fn.3 \
  56. docs/man/gearman_client_set_exception_fn.3 \
  57. docs/man/gearman_client_set_fail_fn.3 \
  58. docs/man/gearman_client_set_log_fn.3 \
  59. docs/man/gearman_client_set_namespace.3 \
  60. docs/man/gearman_client_set_options.3 \
  61. docs/man/gearman_client_set_status_fn.3 \
  62. docs/man/gearman_client_set_task_context_free_fn.3 \
  63. docs/man/gearman_client_set_timeout.3 \
  64. docs/man/gearman_client_set_warning_fn.3 \
  65. docs/man/gearman_client_set_workload_fn.3 \
  66. docs/man/gearman_client_set_workload_free_fn.3 \
  67. docs/man/gearman_client_set_workload_malloc_fn.3 \
  68. docs/man/gearman_client_st.3 \
  69. docs/man/gearman_client_task_free_all.3 \
  70. docs/man/gearman_client_timeout.3 \
  71. docs/man/gearman_client_wait.3 \
  72. docs/man/gearman_create.3 \
  73. docs/man/gearman_execute.3 \
  74. docs/man/gearman_execute_map_reduce.3 \
  75. docs/man/gearman_job_free.3 \
  76. docs/man/gearman_job_free_all.3 \
  77. docs/man/gearman_job_function_name.3 \
  78. docs/man/gearman_job_handle.3 \
  79. docs/man/gearman_job_send_complete.3 \
  80. docs/man/gearman_job_send_data.3 \
  81. docs/man/gearman_job_send_exception.3 \
  82. docs/man/gearman_job_send_fail.3 \
  83. docs/man/gearman_job_send_status.3 \
  84. docs/man/gearman_job_send_warning.3 \
  85. docs/man/gearman_job_st.3 \
  86. docs/man/gearman_job_take_workload.3 \
  87. docs/man/gearman_job_unique.3 \
  88. docs/man/gearman_job_workload.3 \
  89. docs/man/gearman_job_workload_size.3 \
  90. docs/man/gearman_parse_servers.3 \
  91. docs/man/gearman_state_t.3 \
  92. docs/man/gearman_task_context.3 \
  93. docs/man/gearman_task_data.3 \
  94. docs/man/gearman_task_data_size.3 \
  95. docs/man/gearman_task_denominator.3 \
  96. docs/man/gearman_task_free.3 \
  97. docs/man/gearman_task_function_name.3 \
  98. docs/man/gearman_task_give_workload.3 \
  99. docs/man/gearman_task_is_known.3 \
  100. docs/man/gearman_task_is_running.3 \
  101. docs/man/gearman_task_job_handle.3 \
  102. docs/man/gearman_task_numerator.3 \
  103. docs/man/gearman_task_recv_data.3 \
  104. docs/man/gearman_task_send_workload.3 \
  105. docs/man/gearman_task_set_context.3 \
  106. docs/man/gearman_task_st.3 \
  107. docs/man/gearman_task_take_data.3 \
  108. docs/man/gearman_task_unique.3 \
  109. docs/man/gearman_unique_t.3 \
  110. docs/man/gearman_verbose_name.3 \
  111. docs/man/gearman_version.3 \
  112. docs/man/gearman_worker_add_function.3 \
  113. docs/man/gearman_worker_add_options.3 \
  114. docs/man/gearman_worker_add_server.3 \
  115. docs/man/gearman_worker_add_servers.3 \
  116. docs/man/gearman_worker_clone.3 \
  117. docs/man/gearman_worker_context.3 \
  118. docs/man/gearman_worker_create.3 \
  119. docs/man/gearman_worker_echo.3 \
  120. docs/man/gearman_worker_errno.3 \
  121. docs/man/gearman_worker_error.3 \
  122. docs/man/gearman_worker_free.3 \
  123. docs/man/gearman_worker_function_exist.3 \
  124. docs/man/gearman_worker_grab_job.3 \
  125. docs/man/gearman_worker_options.3 \
  126. docs/man/gearman_worker_register.3 \
  127. docs/man/gearman_worker_remove_options.3 \
  128. docs/man/gearman_worker_remove_servers.3 \
  129. docs/man/gearman_worker_set_context.3 \
  130. docs/man/gearman_worker_set_log_fn.3 \
  131. docs/man/gearman_worker_set_namespace.3 \
  132. docs/man/gearman_worker_set_options.3 \
  133. docs/man/gearman_worker_set_timeout.3 \
  134. docs/man/gearman_worker_set_workload_free_fn.3 \
  135. docs/man/gearman_worker_set_workload_malloc_fn.3 \
  136. docs/man/gearman_worker_st.3 \
  137. docs/man/gearman_worker_timeout.3 \
  138. docs/man/gearman_worker_unregister.3 \
  139. docs/man/gearman_worker_unregister_all.3 \
  140. docs/man/gearman_worker_wait.3 \
  141. docs/man/gearman_worker_work.3 \
  142. docs/man/gearmand.8 \
  143. docs/man/libgearman.3
  144. if HAVE_SPHINX
  145. sphinx-help:
  146. @echo "Please use \`make <target>' where <target> is one of"
  147. @echo " html to make standalone HTML files"
  148. @echo " dirhtml to make HTML files named index.html in directories"
  149. @echo " singlehtml to make a single large HTML file"
  150. @echo " pickle to make pickle files"
  151. @echo " json to make JSON files"
  152. @echo " htmlhelp to make HTML files and a HTML help project"
  153. @echo " qthelp to make HTML files and a qthelp project"
  154. @echo " devhelp to make HTML files and a Devhelp project"
  155. @echo " epub to make an epub"
  156. @echo " latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter"
  157. @echo " latexpdf to make LaTeX files and run them through pdflatex"
  158. @echo " text to make text files"
  159. @echo " man to make manual pages"
  160. @echo " changes to make an overview of all changed/added/deprecated items"
  161. @echo " linkcheck to check all external links for integrity"
  162. @echo " doctest to run all doctests embedded in the documentation (if enabled)"
  163. html-local:
  164. PYTHONPATH=${top_srcdir}/docs $(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(SPHINX_BUILDDIR)/html
  165. @echo
  166. @echo "Build finished. The HTML pages are in $(SPHINX_BUILDDIR)/html."
  167. dirhtml:
  168. PYTHONPATH=${top_srcdir}/docs $(SPHINXBUILD) -b dirhtml $(ALLSPHINXOPTS) $(SPHINX_BUILDDIR)/dirhtml
  169. @echo
  170. @echo "Build finished. The HTML pages are in $(SPHINX_BUILDDIR)/dirhtml."
  171. singlehtml:
  172. PYTHONPATH=${top_srcdir}/docs $(SPHINXBUILD) -b singlehtml $(ALLSPHINXOPTS) $(SPHINX_BUILDDIR)/singlehtml
  173. @echo
  174. @echo "Build finished. The HTML page is in $(SPHINX_BUILDDIR)/singlehtml."
  175. pickle:
  176. PYTHONPATH=${top_srcdir}/docs $(SPHINXBUILD) -b pickle $(ALLSPHINXOPTS) $(SPHINX_BUILDDIR)/pickle
  177. @echo
  178. @echo "Build finished; now you can process the pickle files."
  179. json:
  180. PYTHONPATH=${top_srcdir}/docs $(SPHINXBUILD) -b json $(ALLSPHINXOPTS) $(SPHINX_BUILDDIR)/json
  181. @echo
  182. @echo "Build finished; now you can process the JSON files."
  183. htmlhelp:
  184. PYTHONPATH=${top_srcdir}/docs $(SPHINXBUILD) -b htmlhelp $(ALLSPHINXOPTS) $(SPHINX_BUILDDIR)/htmlhelp
  185. @echo
  186. @echo "Build finished; now you can run HTML Help Workshop with the" \
  187. ".hhp project file in $(SPHINX_BUILDDIR)/htmlhelp."
  188. qthelp:
  189. PYTHONPATH=${top_srcdir}/docs $(SPHINXBUILD) -b qthelp $(ALLSPHINXOPTS) $(SPHINX_BUILDDIR)/qthelp
  190. @echo
  191. @echo "Build finished; now you can run "qcollectiongenerator" with the" \
  192. ".qhcp project file in $(SPHINX_BUILDDIR)/qthelp, like this:"
  193. @echo "# qcollectiongenerator $(SPHINX_BUILDDIR)/qthelp/Libmemcached.qhcp"
  194. @echo "To view the help file:"
  195. @echo "# assistant -collectionFile $(SPHINX_BUILDDIR)/qthelp/Libmemcached.qhc"
  196. devhelp:
  197. PYTHONPATH=${top_srcdir}/docs $(SPHINXBUILD) -b devhelp $(ALLSPHINXOPTS) $(SPHINX_BUILDDIR)/devhelp
  198. @echo
  199. @echo "Build finished."
  200. @echo "To view the help file:"
  201. @echo "# mkdir -p $$HOME/.local/share/devhelp/Libmemcached"
  202. @echo "# ln -s $(SPHINX_BUILDDIR)/devhelp $$HOME/.local/share/devhelp/Libmemcached"
  203. @echo "# devhelp"
  204. epub:
  205. PYTHONPATH=${top_srcdir}/docs $(SPHINXBUILD) -b epub $(ALLSPHINXOPTS) $(SPHINX_BUILDDIR)/epub
  206. @echo
  207. @echo "Build finished. The epub file is in $(SPHINX_BUILDDIR)/epub."
  208. latex:
  209. PYTHONPATH=${top_srcdir}/docs $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(SPHINX_BUILDDIR)/latex
  210. @echo
  211. @echo "Build finished; the LaTeX files are in $(SPHINX_BUILDDIR)/latex."
  212. @echo "Run \`make' in that directory to run these through (pdf)latex" \
  213. "(use \`make latexpdf' here to do that automatically)."
  214. latexpdf: latex
  215. PYTHONPATH=${top_srcdir}/docs $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(SPHINX_BUILDDIR)/latex
  216. @echo "Running LaTeX files through pdflatex..."
  217. make -C $(SPHINX_BUILDDIR)/latex all-pdf
  218. @echo "pdflatex finished; the PDF files are in $(SPHINX_BUILDDIR)/latex."
  219. text:
  220. PYTHONPATH=${top_srcdir}/docs $(SPHINXBUILD) -b text $(ALLSPHINXOPTS) $(SPHINX_BUILDDIR)/text
  221. @echo
  222. @echo "Build finished. The text files are in $(SPHINX_BUILDDIR)/text."
  223. man:
  224. PYTHONPATH=${top_srcdir}/docs $(SPHINXBUILD) -b man $(ALLSPHINXOPTS) $(SPHINX_BUILDDIR)/man
  225. @echo
  226. @echo "Build finished. The manual pages are in $(SPHINX_BUILDDIR)/man."
  227. changes:
  228. PYTHONPATH=${top_srcdir}/docs $(SPHINXBUILD) -b changes $(ALLSPHINXOPTS) $(SPHINX_BUILDDIR)/changes
  229. @echo
  230. @echo "The overview file is in $(SPHINX_BUILDDIR)/changes."
  231. linkcheck:
  232. PYTHONPATH=${top_srcdir}/docs $(SPHINXBUILD) -b linkcheck $(ALLSPHINXOPTS) $(SPHINX_BUILDDIR)/linkcheck
  233. @echo
  234. @echo "Link check complete; look for any errors in the above output " \
  235. "or in $(SPHINX_BUILDDIR)/linkcheck/output.txt."
  236. doctest:
  237. PYTHONPATH=${top_srcdir}/docs $(SPHINXBUILD) -b doctest $(ALLSPHINXOPTS) $(SPHINX_BUILDDIR)/doctest
  238. @echo "Testing of doctests in the sources finished, look at the " \
  239. "results in $(SPHINX_BUILDDIR)/doctest/output.txt."
  240. endif