Makefile.am 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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 tests
  16. if BUILD_EXAMPLES
  17. SUBDIRS += examples
  18. endif
  19. EXTRA_DIST = \
  20. COPYING \
  21. README \
  22. ChangeLog
  23. noinst_HEADERS = \
  24. include/starpu-gcc/opencl.h \
  25. include/starpu-gcc/tasks.h \
  26. include/starpu-gcc/utils.h \
  27. include/starpu-gcc/warn-unregistered.h
  28. showcheck:
  29. RET=0 ; \
  30. for i in $(SUBDIRS) ; do \
  31. make -C $$i showcheck || RET=1 ; \
  32. done ; \
  33. exit $$RET
  34. # Generate a GNU-style ChangeLog for inclusion in the tarball.
  35. # It requires network access and may be slow.
  36. gen-ChangeLog:
  37. if test "x$$CHANGELOG" = "xno"; then \
  38. echo "ChangeLog not built, per user request" >&2; \
  39. elif ! xsltproc --version > /dev/null 2>&1; then \
  40. echo "xsltproc not found, ChangeLog not generated" >&2; \
  41. elif ! test -d "$(srcdir)/.svn"; then \
  42. echo "Subversion meta-data not found, ChangeLog not generated" >&2; \
  43. elif ! svn --version > /dev/null 2>&1; then \
  44. echo "Subversion not found, ChangeLog not generated" >&2; \
  45. else \
  46. ( cd "$(srcdir)"; \
  47. svn log --xml --verbose ) | \
  48. xsltproc "$(top_srcdir)/build-aux/svn2cl.xsl" - > "ChangeLog.tmp"; \
  49. mv "ChangeLog.tmp" "$(distdir)/ChangeLog"; \
  50. fi
  51. dist-hook: gen-ChangeLog
  52. .PHONY: showcheck dist-hook gen-ChangeLog