Makefile.am 5.7 KB

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