Makefile.am 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. # StarPU --- Runtime system for heterogeneous multicore architectures.
  2. #
  3. # Copyright (C) 2011, 2012 Inria
  4. #
  5. # StarPU is free software; you can redistribute it and/or modify
  6. # it under the terms of the GNU Lesser General Public License as published by
  7. # the Free Software Foundation; either version 2.1 of the License, or (at
  8. # your option) any later version.
  9. #
  10. # StarPU is distributed in the hope that it will be useful, but
  11. # WITHOUT ANY WARRANTY; without even the implied warranty of
  12. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  13. #
  14. # See the GNU Lesser General Public License in COPYING.LGPL for more details.
  15. SUBDIRS = src
  16. if BUILD_TESTS
  17. SUBDIRS += tests
  18. endif
  19. if BUILD_EXAMPLES
  20. SUBDIRS += examples
  21. endif
  22. EXTRA_DIST = \
  23. COPYING \
  24. README \
  25. ChangeLog
  26. noinst_HEADERS = \
  27. include/starpu-gcc/opencl.h \
  28. include/starpu-gcc/tasks.h \
  29. include/starpu-gcc/utils.h \
  30. include/starpu-gcc/warn-unregistered.h
  31. showcheck:
  32. RET=0 ; \
  33. for i in $(SUBDIRS) ; do \
  34. make -C $$i showcheck || RET=1 ; \
  35. done ; \
  36. exit $$RET
  37. showsuite:
  38. RET=0 ; \
  39. for i in $(SUBDIRS) ; do \
  40. make -C $$i showsuite || RET=1 ; \
  41. done ; \
  42. exit $$RET
  43. # Generate a GNU-style ChangeLog for inclusion in the tarball.
  44. # It requires network access and may be slow.
  45. gen-ChangeLog:
  46. if test "x$$CHANGELOG" = "xno"; then \
  47. echo "ChangeLog not built, per user request" >&2; \
  48. elif ! xsltproc --version > /dev/null 2>&1; then \
  49. echo "xsltproc not found, ChangeLog not generated" >&2; \
  50. elif ! test -d "$(srcdir)/.svn"; then \
  51. echo "Subversion meta-data not found, ChangeLog not generated" >&2; \
  52. elif ! svn --version > /dev/null 2>&1; then \
  53. echo "Subversion not found, ChangeLog not generated" >&2; \
  54. else \
  55. ( cd "$(srcdir)"; \
  56. svn log --xml --verbose ) | \
  57. xsltproc "$(top_srcdir)/build-aux/svn2cl.xsl" - > "ChangeLog.tmp"; \
  58. mv "ChangeLog.tmp" "$(distdir)/ChangeLog"; \
  59. fi
  60. dist-hook: gen-ChangeLog
  61. .PHONY: showcheck dist-hook gen-ChangeLog