Makefile.am 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  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. info_TEXINFOS = starpu.texi
  13. chapters = \
  14. chapters/advanced-examples.texi \
  15. chapters/api.texi \
  16. chapters/basic-examples.texi \
  17. chapters/c-extensions.texi \
  18. chapters/configuration.texi \
  19. chapters/fdl-1.3.texi \
  20. chapters/fft-support.texi \
  21. chapters/hypervisor_api.texi \
  22. chapters/installing.texi \
  23. chapters/introduction.texi \
  24. chapters/mpi-support.texi \
  25. chapters/perf-feedback.texi \
  26. chapters/perf-optimization.texi \
  27. chapters/scaling-vector-example.texi \
  28. chapters/sc_hypervisor.texi \
  29. chapters/sched_ctx.texi \
  30. chapters/socl.texi \
  31. chapters/tips-tricks.texi \
  32. chapters/vector_scal_cpu.texi \
  33. chapters/vector_scal_c.texi \
  34. chapters/vector_scal_cuda.texi \
  35. chapters/vector_scal_opencl_codelet.texi \
  36. chapters/vector_scal_opencl.texi
  37. starpu_TEXINFOS = \
  38. chapters/version.texi \
  39. $(chapters)
  40. MAINTAINERCLEANFILES = starpu.pdf starpu.html
  41. EXTRA_DIST = starpu.css \
  42. tutorial/README \
  43. tutorial/Makefile \
  44. tutorial/hello_world.c \
  45. tutorial/hello_world_plugin.c \
  46. tutorial/vector_scal.c \
  47. tutorial/vector_scal_cpu.c \
  48. tutorial/vector_scal_cuda.cu \
  49. tutorial/vector_scal_opencl.c \
  50. tutorial/vector_scal_opencl_kernel.cl \
  51. tutorial/vector_scal_plugin.c \
  52. tutorial/vector_scal_plugin_cuda.cu
  53. starpu_tutorial_dir = $(docdir)/tutorial
  54. starpu_tutorial__DATA = \
  55. tutorial/README \
  56. tutorial/Makefile \
  57. tutorial/hello_world.c \
  58. tutorial/hello_world_plugin.c \
  59. tutorial/vector_scal.c \
  60. tutorial/vector_scal_cpu.c \
  61. tutorial/vector_scal_cuda.cu \
  62. tutorial/vector_scal_opencl.c \
  63. tutorial/vector_scal_opencl_kernel.cl \
  64. tutorial/vector_scal_plugin.c \
  65. tutorial/vector_scal_plugin_cuda.cu
  66. dist_pdf_DATA = starpu.pdf
  67. dist_html_DATA = starpu.html
  68. AM_MAKEINFOHTMLFLAGS = --css-include=$(top_srcdir)/doc/starpu.css --no-headers --no-split
  69. uninstall-local:
  70. $(RM) $(DESTDIR)$(infodir)/dir
  71. chapters/version.texi: $(chapters)
  72. @-for f in $(starpu_TEXINFOS) ; do \
  73. if test -f $(top_srcdir)/doc/$$f ; then stat --format=%Y $(top_srcdir)/doc/$$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 "@set UPDATED " `cat timestamp_updated` > $(top_srcdir)/doc/chapters/version.texi;\
  81. echo "@set UPDATED-MONTH" `cat timestamp_updated_month` >> $(top_srcdir)/doc/chapters/version.texi;\
  82. else \
  83. echo "@set UPDATED unknown_date" > $(top_srcdir)/doc/chapters/version.texi ;\
  84. echo "@set UPDATED-MONTH unknown_date" >> $(top_srcdir)/doc/chapters/version.texi; \
  85. fi
  86. @echo "@set EDITION $(VERSION)" >> $(top_srcdir)/doc/chapters/version.texi
  87. @echo "@set VERSION $(VERSION)" >> $(top_srcdir)/doc/chapters/version.texi
  88. @$(RM) timestamp timestamp_updated timestamp_updated_month
  89. #$(top_srcdir)/doc/starpu.texi: vector_scal_c.texi vector_scal_cuda.texi vector_scal_opencl.texi vector_scal_opencl_codelet.texi
  90. #vector_scal_c.texi: $(top_srcdir)/examples/basic_examples/vector_scal.c
  91. # cat $< | sed 's/{/@{/g' | sed 's/}/@}/g' | sed 's/\t/ /g' > $@
  92. #vector_scal_cuda.texi: $(top_srcdir)/examples/basic_examples/vector_scal_cuda.cu
  93. # cat $< | sed 's/{/@{/g' | sed 's/}/@}/g' | sed 's/\t/ /g' > $@
  94. #vector_scal_opencl.texi: $(top_srcdir)/examples/basic_examples/vector_scal_opencl.c
  95. # cat $< | sed 's/{/@{/g' | sed 's/}/@}/g' | sed 's/\t/ /g' > $@
  96. #vector_scal_opencl_codelet.texi: $(top_srcdir)/examples/basic_examples/vector_scal_opencl_codelet.cl
  97. # cat $< | sed 's/{/@{/g' | sed 's/}/@}/g' | sed 's/\t/ /g' > $@
  98. #
  99. #CLEANFILES= \
  100. # vector_scal_c.texi vector_scal_cuda.texi vector_scal_opencl.texi vector_scal_opencl_codelet.texi
  101. # Rule to update documentation on web server. Should only be used locally.
  102. PUBLISHHOST ?= sync
  103. update-web: starpu.html
  104. sed -i 's/gcc\.html#Attribute-Syntax/http:\/\/gcc.gnu.org\/onlinedocs\/gcc\/Attribute-Syntax.html#Attribute-Syntax/' starpu.html
  105. scp starpu.pdf starpu.html $(PUBLISHHOST):/web/runtime/html/StarPU
  106. showcheck:
  107. -cat /dev/null