Makefile.am 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  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/socl_opencl_extensions.doxy \
  34. chapters/tips_and_tricks.doxy \
  35. chapters/environment_variables.doxy \
  36. chapters/configure_options.doxy \
  37. chapters/fdl-1.3.doxy \
  38. chapters/scaling-vector-example.doxy \
  39. chapters/hello_pragma2.c \
  40. chapters/hello_pragma.c \
  41. chapters/vector_scal_c.c \
  42. chapters/vector_scal_cpu.c \
  43. chapters/vector_scal_cuda.cu \
  44. chapters/vector_scal_opencl.c \
  45. chapters/vector_scal_opencl_codelet.cl \
  46. chapters/api/codelet_and_tasks.doxy \
  47. chapters/api/cuda_extensions.doxy \
  48. chapters/api/data_interfaces.doxy \
  49. chapters/api/data_management.doxy \
  50. chapters/api/data_partition.doxy \
  51. chapters/api/expert_mode.doxy \
  52. chapters/api/explicit_dependencies.doxy \
  53. chapters/api/fft_support.doxy \
  54. chapters/api/fxt_support.doxy \
  55. chapters/api/implicit_dependencies.doxy \
  56. chapters/api/initialization.doxy \
  57. chapters/api/insert_task.doxy \
  58. chapters/api/lower_bound.doxy \
  59. chapters/api/misc_helpers.doxy \
  60. chapters/api/mpi.doxy \
  61. chapters/api/multiformat_data_interface.doxy \
  62. chapters/api/opencl_extensions.doxy \
  63. chapters/api/parallel_tasks.doxy \
  64. chapters/api/performance_model.doxy \
  65. chapters/api/profiling.doxy \
  66. chapters/api/running_driver.doxy \
  67. chapters/api/scheduling_context_hypervisor.doxy \
  68. chapters/api/scheduling_contexts.doxy \
  69. chapters/api/scheduling_policy.doxy \
  70. chapters/api/standard_memory_library.doxy \
  71. chapters/api/task_bundles.doxy \
  72. chapters/api/task_lists.doxy \
  73. chapters/api/top.doxy \
  74. chapters/api/versioning.doxy \
  75. chapters/api/workers.doxy
  76. chapters/version.sty: $(chapters)
  77. @-for f in $(chapters) ; do \
  78. if test -f $(top_srcdir)/doc/doxygen/$$f ; then stat --format=%Y $(top_srcdir)/doc/doxygen/$$f 2>/dev/null ; fi \
  79. done | sort -r | head -1 > timestamp
  80. @if test -s timestamp ; then \
  81. LC_ALL=C date --date=@`cat timestamp` +"%d %B %Y" > timestamp_updated 2>/dev/null;\
  82. LC_ALL=C date --date=@`cat timestamp` +"%B %Y" > timestamp_updated_month 2>/dev/null;\
  83. fi
  84. @if test -s timestamp_updated ; then \
  85. echo "\newcommand{\STARPUUPDATED}{"`cat timestamp_updated`"}" > $(top_srcdir)/doc/doxygen/chapters/version.sty;\
  86. else \
  87. echo "\newcommand{\STARPUUPDATED}{unknown_date}" > $(top_srcdir)/doc/doxygen/chapters/version.sty;\
  88. fi
  89. @echo "\newcommand{\STARPUVERSION}{$(VERSION)}" >> $(top_srcdir)/doc/doxygen/chapters/version.sty
  90. @-for f in timestamp timestamp_updated timestamp_updated_month ; do \
  91. if test -f $$f ; then $(RM) $$f ; fi ;\
  92. done
  93. #chapters/version.html: $(chapters)
  94. EXTRA_DIST = \
  95. $(chapters) \
  96. chapters/version.sty \
  97. doxygen.cfg \
  98. refman.tex
  99. dox_inputs = $(DOX_CONFIG) \
  100. $(chapters) \
  101. chapters/version.sty \
  102. $(top_srcdir)/include/starpu.h \
  103. $(top_srcdir)/include/starpu_data_filters.h \
  104. $(top_srcdir)/include/starpu_data_interfaces.h \
  105. $(top_srcdir)/include/starpu_worker.h \
  106. $(top_srcdir)/include/starpu_task.h \
  107. $(top_srcdir)/include/starpu_task_bundle.h \
  108. $(top_srcdir)/include/starpu_task_list.h \
  109. $(top_srcdir)/include/starpu_task_util.h \
  110. $(top_srcdir)/include/starpu_data.h \
  111. $(top_srcdir)/include/starpu_perfmodel.h \
  112. $(top_srcdir)/include/starpu_util.h \
  113. $(top_srcdir)/include/starpu_fxt.h \
  114. $(top_srcdir)/include/starpu_cuda.h \
  115. $(top_srcdir)/include/starpu_opencl.h \
  116. $(top_srcdir)/include/starpu_sink.h \
  117. $(top_srcdir)/include/starpu_mic.h \
  118. $(top_srcdir)/include/starpu_scc.h \
  119. $(top_srcdir)/include/starpu_expert.h \
  120. $(top_srcdir)/include/starpu_profiling.h \
  121. $(top_srcdir)/include/starpu_bound.h \
  122. $(top_srcdir)/include/starpu_scheduler.h \
  123. $(top_srcdir)/include/starpu_sched_ctx.h \
  124. $(top_srcdir)/include/starpu_top.h \
  125. $(top_srcdir)/include/starpu_hash.h \
  126. $(top_srcdir)/include/starpu_rand.h \
  127. $(top_srcdir)/include/starpu_cublas.h \
  128. $(top_srcdir)/include/starpu_driver.h \
  129. $(top_srcdir)/include/starpu_stdlib.h \
  130. $(top_srcdir)/include/starpu_thread.h \
  131. $(top_srcdir)/include/starpu_thread_util.h
  132. $(DOX_TAG): $(dox_inputs)
  133. rm -fr $(DOX_HTML_DIR) $(DOX_LATEX_DIR)
  134. $(DOXYGEN) $(DOX_CONFIG)
  135. dist_pdf_DATA = $(DOX_PDF)
  136. $(DOX_PDF): $(DOX_TAG) refman.tex
  137. cp $(top_srcdir)/doc/doxygen/chapters/version.sty $(DOX_DIR)
  138. cd $(DOX_LATEX_DIR); \
  139. rm -f *.aux *.toc *.idx *.ind *.ilg *.log *.out; \
  140. sed -i -e 's/__env__/\\_Environment Variables!/' -e 's/\\-\\_\\-\\-\\_\\-env\\-\\_\\-\\-\\_\\-//' EnvironmentVariables.tex ;\
  141. sed -i -e 's/__configure__/\\_Configure Options!/' -e 's/\\-\\_\\-\\-\\_\\-configure\\-\\_\\-\\-\\_\\-//' ConfigureOptions.tex ;\
  142. $(PDFLATEX) refman.tex; \
  143. $(MAKEINDEX) refman.idx;\
  144. $(PDFLATEX) refman.tex; \
  145. done=0; repeat=5; \
  146. while test $$done = 0 -a $$repeat -gt 0; do \
  147. if $(EGREP) 'Rerun (LaTeX|to get cross-references right)' refman.log > /dev/null 2>&1; then \
  148. $(PDFLATEX) refman.tex; \
  149. repeat=`expr $$repeat - 1`; \
  150. else \
  151. done=1; \
  152. fi; \
  153. done; \
  154. mv refman.pdf ../$(DOX_PDF)
  155. showcheck:
  156. -cat /dev/null