Makefile.am 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. # StarPU --- Runtime system for heterogeneous multicore architectures.
  2. #
  3. # Copyright (C) 2011, 2012 Institut National de Recherche en Informatique et Automatique
  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 = COPYING README ChangeLog
  20. showcheck:
  21. for i in $(SUBDIRS) ; do \
  22. make -C $$i showcheck ; \
  23. done
  24. # Generate a GNU-style ChangeLog for inclusion in the tarball.
  25. # It requires network access and may be slow.
  26. gen-ChangeLog:
  27. if test "x$$CHANGELOG" = "xno"; then \
  28. echo "ChangeLog not built, per user request" >&2; \
  29. elif ! xsltproc --version > /dev/null 2>&1; then \
  30. echo "xsltproc not found, ChangeLog not generated" >&2; \
  31. elif ! test -d "$(srcdir)/.svn"; then \
  32. echo "Subversion meta-data not found, ChangeLog not generated" >&2; \
  33. elif ! svn --version > /dev/null 2>&1; then \
  34. echo "Subversion not found, ChangeLog not generated" >&2; \
  35. else \
  36. ( cd "$(srcdir)"; \
  37. svn log --xml --verbose ) | \
  38. xsltproc "$(top_srcdir)/build-aux/svn2cl.xsl" - > "ChangeLog.tmp"; \
  39. mv "ChangeLog.tmp" "$(distdir)/ChangeLog"; \
  40. fi
  41. dist-hook: gen-ChangeLog
  42. .PHONY: showcheck dist-hook gen-ChangeLog