include.am 13 KB

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