Makefile.am 8.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230
  1. # StarPU --- Runtime system for heterogeneous multicore architectures.
  2. #
  3. # Copyright (C) 2009, 2011 Université de Bordeaux 1
  4. # Copyright (C) 2010, 2011, 2012, 2013 Centre National de la Recherche Scientifique
  5. #
  6. # Permission is granted to copy, distribute and/or modify this document
  7. # under the terms of the GNU Free Documentation License, Version 1.3
  8. # or any later version published by the Free Software Foundation;
  9. # with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts.
  10. #
  11. # See the GNU Free Documentation License in COPYING.GFDL for more details.
  12. DOXYGEN = doxygen
  13. PDFLATEX = pdflatex
  14. MAKEINDEX = makeindex
  15. DOX_DIR = $(top_builddir)/doc/doxygen
  16. DOX_CONFIG = $(top_srcdir)/doc/doxygen/doxygen.cfg
  17. DOX_HTML_DIR = html
  18. DOX_LATEX_DIR = latex
  19. DOX_PDF = starpu.pdf
  20. DOX_TAG = starpu.tag
  21. chapters = \
  22. chapters/advanced_examples.doxy \
  23. chapters/basic_examples.doxy \
  24. chapters/building.doxy \
  25. chapters/c_extensions.doxy \
  26. chapters/fft_support.doxy \
  27. chapters/introduction.doxy \
  28. chapters/mpi_support.doxy \
  29. chapters/optimize_performance.doxy \
  30. chapters/performance_feedback.doxy \
  31. chapters/scheduling_context_hypervisor.doxy \
  32. chapters/scheduling_contexts.doxy \
  33. chapters/out_of_core.doxy \
  34. chapters/socl_opencl_extensions.doxy \
  35. chapters/tips_and_tricks.doxy \
  36. chapters/environment_variables.doxy \
  37. chapters/configure_options.doxy \
  38. chapters/fdl-1.3.doxy \
  39. chapters/scaling-vector-example.doxy \
  40. chapters/mic_scc_support.doxy \
  41. chapters/files.doxy \
  42. chapters/code/hello_pragma2.c \
  43. chapters/code/hello_pragma.c \
  44. chapters/code/scal_pragma.cu \
  45. chapters/code/matmul_pragma.c \
  46. chapters/code/matmul_pragma2.c \
  47. chapters/code/cholesky_pragma.c \
  48. chapters/code/forkmode.c \
  49. chapters/code/multiformat.c \
  50. chapters/code/complex.c \
  51. chapters/code/simgrid.c \
  52. chapters/code/vector_scal_c.c \
  53. chapters/code/vector_scal_cpu.c \
  54. chapters/code/vector_scal_cuda.cu \
  55. chapters/code/vector_scal_opencl.c \
  56. chapters/code/vector_scal_opencl_codelet.cl \
  57. chapters/code/disk_copy.c \
  58. chapters/code/disk_compute.c \
  59. chapters/api/codelet_and_tasks.doxy \
  60. chapters/api/cuda_extensions.doxy \
  61. chapters/api/data_interfaces.doxy \
  62. chapters/api/data_management.doxy \
  63. chapters/api/data_partition.doxy \
  64. chapters/api/data_out_of_core.doxy \
  65. chapters/api/expert_mode.doxy \
  66. chapters/api/explicit_dependencies.doxy \
  67. chapters/api/fft_support.doxy \
  68. chapters/api/fxt_support.doxy \
  69. chapters/api/implicit_dependencies.doxy \
  70. chapters/api/initialization.doxy \
  71. chapters/api/insert_task.doxy \
  72. chapters/api/lower_bound.doxy \
  73. chapters/api/misc_helpers.doxy \
  74. chapters/api/mpi.doxy \
  75. chapters/api/multiformat_data_interface.doxy \
  76. chapters/api/opencl_extensions.doxy \
  77. chapters/api/mic_extensions.doxy \
  78. chapters/api/scc_extensions.doxy \
  79. chapters/api/parallel_tasks.doxy \
  80. chapters/api/performance_model.doxy \
  81. chapters/api/profiling.doxy \
  82. chapters/api/running_driver.doxy \
  83. chapters/api/scheduling_context_hypervisor.doxy \
  84. chapters/api/scheduling_contexts.doxy \
  85. chapters/api/scheduling_policy.doxy \
  86. chapters/api/standard_memory_library.doxy \
  87. chapters/api/task_bundles.doxy \
  88. chapters/api/task_lists.doxy \
  89. chapters/api/top.doxy \
  90. chapters/api/versioning.doxy \
  91. chapters/api/workers.doxy
  92. starpu_config.h: $(top_srcdir)/include/starpu_config.h.in
  93. sed 's/#undef \(.*\)/#define \1 1/' $< > $@
  94. chapters/version.sty: $(chapters)
  95. @-for f in $(chapters) ; do \
  96. if test -f $(top_srcdir)/doc/doxygen/$$f ; then stat --format=%Y $(top_srcdir)/doc/doxygen/$$f 2>/dev/null ; fi \
  97. done | sort -r | head -1 > timestamp
  98. @if test -s timestamp ; then \
  99. LC_ALL=C date --date=@`cat timestamp` +"%d %B %Y" > timestamp_updated 2>/dev/null;\
  100. LC_ALL=C date --date=@`cat timestamp` +"%B %Y" > timestamp_updated_month 2>/dev/null;\
  101. fi
  102. @if test -s timestamp_updated ; then \
  103. echo "\newcommand{\STARPUUPDATED}{"`cat timestamp_updated`"}" > $(top_srcdir)/doc/doxygen/chapters/version.sty;\
  104. else \
  105. echo "\newcommand{\STARPUUPDATED}{unknown date}" > $(top_srcdir)/doc/doxygen/chapters/version.sty;\
  106. fi
  107. @echo "\newcommand{\STARPUVERSION}{$(VERSION)}" >> $(top_srcdir)/doc/doxygen/chapters/version.sty
  108. @-for f in timestamp timestamp_updated timestamp_updated_month ; do \
  109. if test -f $$f ; then $(RM) $$f ; fi ;\
  110. done
  111. chapters/version.html: $(chapters)
  112. @-for f in $(chapters) ; do \
  113. if test -f $(top_srcdir)/doc/doxygen/$$f ; then stat --format=%Y $(top_srcdir)/doc/doxygen/$$f 2>/dev/null ; fi \
  114. done | sort -r | head -1 > timestamp
  115. @if test -s timestamp ; then \
  116. LC_ALL=C date --date=@`cat timestamp` +"%d %B %Y" > timestamp_updated 2>/dev/null;\
  117. LC_ALL=C date --date=@`cat timestamp` +"%B %Y" > timestamp_updated_month 2>/dev/null;\
  118. fi
  119. @echo "This manual documents the usage of StarPU version $(VERSION)." > $(top_srcdir)/doc/doxygen/chapters/version.html
  120. @if test -s timestamp_updated ; then \
  121. echo "Its contents was last updated on "`cat timestamp_updated`"." >> $(top_srcdir)/doc/doxygen/chapters/version.html;\
  122. else \
  123. echo "Its contents was last updated on <em>unknown_date</em>." >> $(top_srcdir)/doc/doxygen/chapters/version.html;\
  124. fi
  125. @-for f in timestamp timestamp_updated timestamp_updated_month ; do \
  126. if test -f $$f ; then $(RM) $$f ; fi ;\
  127. done
  128. EXTRA_DIST = \
  129. $(chapters) \
  130. chapters/version.sty \
  131. chapters/version.html \
  132. doxygen.cfg \
  133. refman.tex
  134. dox_inputs = $(DOX_CONFIG) \
  135. $(chapters) \
  136. starpu_config.h \
  137. chapters/version.sty \
  138. chapters/version.html \
  139. $(top_srcdir)/include/starpu.h \
  140. $(top_srcdir)/include/starpu_data_filters.h \
  141. $(top_srcdir)/include/starpu_data_interfaces.h \
  142. $(top_srcdir)/include/starpu_disk.h \
  143. $(top_srcdir)/include/starpu_worker.h \
  144. $(top_srcdir)/include/starpu_task.h \
  145. $(top_srcdir)/include/starpu_task_bundle.h \
  146. $(top_srcdir)/include/starpu_task_list.h \
  147. $(top_srcdir)/include/starpu_task_util.h \
  148. $(top_srcdir)/include/starpu_data.h \
  149. $(top_srcdir)/include/starpu_perfmodel.h \
  150. $(top_srcdir)/include/starpu_util.h \
  151. $(top_srcdir)/include/starpu_fxt.h \
  152. $(top_srcdir)/include/starpu_cuda.h \
  153. $(top_srcdir)/include/starpu_opencl.h \
  154. $(top_srcdir)/include/starpu_sink.h \
  155. $(top_srcdir)/include/starpu_mic.h \
  156. $(top_srcdir)/include/starpu_scc.h \
  157. $(top_srcdir)/include/starpu_expert.h \
  158. $(top_srcdir)/include/starpu_profiling.h \
  159. $(top_srcdir)/include/starpu_bound.h \
  160. $(top_srcdir)/include/starpu_scheduler.h \
  161. $(top_srcdir)/include/starpu_sched_ctx.h \
  162. $(top_srcdir)/include/starpu_top.h \
  163. $(top_srcdir)/include/starpu_hash.h \
  164. $(top_srcdir)/include/starpu_rand.h \
  165. $(top_srcdir)/include/starpu_cublas.h \
  166. $(top_srcdir)/include/starpu_driver.h \
  167. $(top_srcdir)/include/starpu_stdlib.h \
  168. $(top_srcdir)/include/starpu_thread.h \
  169. $(top_srcdir)/include/starpu_thread_util.h \
  170. $(top_srcdir)/mpi/include/starpu_mpi.h \
  171. $(top_srcdir)/sc_hypervisor/include/sc_hypervisor.h \
  172. $(top_srcdir)/sc_hypervisor/include/sc_hypervisor_config.h \
  173. $(top_srcdir)/sc_hypervisor/include/sc_hypervisor_lp.h \
  174. $(top_srcdir)/sc_hypervisor/include/sc_hypervisor_monitoring.h \
  175. $(top_srcdir)/sc_hypervisor/include/sc_hypervisor_policy.h
  176. $(DOX_TAG): $(dox_inputs)
  177. rm -fr $(DOX_HTML_DIR) $(DOX_LATEX_DIR)
  178. $(DOXYGEN) $(DOX_CONFIG)
  179. sed -i 's/ModuleDocumentation <\/li>/<a class="el" href="modules.html">Modules<\/a>/' html/index.html
  180. sed -i 's/FileDocumentation <\/li>/<a class="el" href="files.html">Files<\/a>/' html/index.html
  181. dist_pdf_DATA = $(DOX_PDF)
  182. $(DOX_PDF): $(DOX_TAG) refman.tex
  183. cp $(top_srcdir)/doc/doxygen/chapters/version.sty $(DOX_LATEX_DIR)
  184. cd $(DOX_LATEX_DIR); \
  185. rm -f *.aux *.toc *.idx *.ind *.ilg *.log *.out; \
  186. sed -i -e 's/__env__/\\_Environment Variables!/' -e 's/\\-\\_\\-\\-\\_\\-env\\-\\_\\-\\-\\_\\-//' ExecutionConfigurationThroughEnvironmentVariables.tex ;\
  187. sed -i -e 's/__configure__/\\_Configure Options!/' -e 's/\\-\\_\\-\\-\\_\\-configure\\-\\_\\-\\-\\_\\-//' CompilationConfiguration.tex ;\
  188. sed -i s'/\\item Module\\-Documentation/\\item \\hyperlink{ModuleDocumentation}{Module Documentation}/' index.tex ;\
  189. sed -i s'/\\item File\\-Documentation/\\item \\hyperlink{FileDocumentation}{File Documentation}/' index.tex ;\
  190. $(PDFLATEX) refman.tex; \
  191. $(MAKEINDEX) refman.idx;\
  192. $(PDFLATEX) refman.tex; \
  193. done=0; repeat=5; \
  194. while test $$done = 0 -a $$repeat -gt 0; do \
  195. if $(EGREP) 'Rerun (LaTeX|to get cross-references right)' refman.log > /dev/null 2>&1; then \
  196. $(PDFLATEX) refman.tex; \
  197. repeat=`expr $$repeat - 1`; \
  198. else \
  199. done=1; \
  200. fi; \
  201. done; \
  202. mv refman.pdf ../$(DOX_PDF)
  203. CLEANFILES = $(DOX_TAG) starpu_config.h \
  204. -r \
  205. $(DOX_HTML_DIR) \
  206. $(DOX_LATEX_DIR) \
  207. $(DOX_PDF)
  208. # Rule to update documentation on web server. Should only be used locally.
  209. PUBLISHHOST ?= sync
  210. update-web: $(DOX_PDF)
  211. scp -pr starpu.pdf html $(PUBLISHHOST):/web/runtime/html/StarPU/doc
  212. showcheck:
  213. -cat /dev/null