Makefile.am 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. bin_SCRIPTS =
  2. # Handle substitution of fully-expanded Autoconf variables.
  3. do_subst = $(SED) \
  4. -e 's,[@]GUILE[@],$(GUILE),g' \
  5. -e 's,[@]guilemoduledir[@],$(guilemoduledir),g' \
  6. -e 's,[@]guileobjectdir[@],$(guileobjectdir),g' \
  7. -e 's,[@]localedir[@],$(localedir),g'
  8. nodist_noinst_SCRIPTS = pre-inst-env
  9. GOBJECTS = $(SOURCES:%.scm=%.go)
  10. moddir=$(prefix)/share/guile/site/$(GUILE_EFFECTIVE_VERSION)
  11. godir=$(libdir)/guile/$(GUILE_EFFECTIVE_VERSION)/site-ccache
  12. ccachedir=$(libdir)/guile/$(GUILE_EFFECTIVE_VERSION)/site-ccache
  13. nobase_mod_DATA = $(SOURCES) $(NOCOMP_SOURCES)
  14. nobase_go_DATA = $(GOBJECTS)
  15. # Make sure source files are installed first, so that the mtime of
  16. # installed compiled files is greater than that of installed source
  17. # files. See
  18. # <http://lists.gnu.org/archive/html/guile-devel/2010-07/msg00125.html>
  19. # for details.
  20. guile_install_go_files = install-nobase_goDATA
  21. $(guile_install_go_files): install-nobase_modDATA
  22. EXTRA_DIST = $(SOURCES) $(NOCOMP_SOURCES)
  23. GUILE_WARNINGS = -Wunbound-variable -Warity-mismatch -Wformat
  24. SUFFIXES = .scm .go
  25. .scm.go:
  26. $(AM_V_GEN)$(top_builddir)/pre-inst-env $(GUILE_TOOLS) compile $(GUILE_TARGET) $(GUILE_WARNINGS) -o "$@" "$<"
  27. SOURCES = zlib.scm \
  28. zlib/config.scm
  29. TESTS = \
  30. tests/zlib.scm
  31. TEST_EXTENSIONS = .scm
  32. SCM_LOG_DRIVER = \
  33. $(top_builddir)/pre-inst-env \
  34. $(GUILE) --no-auto-compile -e main \
  35. $(top_srcdir)/build-aux/test-driver.scm
  36. # Tell 'build-aux/test-driver.scm' to display only source file names,
  37. # not indivdual test names.
  38. AM_SCM_LOG_DRIVER_FLAGS = --brief=yes
  39. AM_SCM_LOG_FLAGS = --no-auto-compile -L "$(top_srcdir)"
  40. AM_TESTS_ENVIRONMENT = abs_top_srcdir="$(abs_top_srcdir)"
  41. EXTRA_DIST += README.org \
  42. README \
  43. HACKING \
  44. COPYING \
  45. guix.scm \
  46. hall.scm \
  47. build-aux/test-driver.scm \
  48. $(TESTS)
  49. clean-go:
  50. -$(RM) $(GOBJECTS)
  51. .PHONY: clean-go
  52. CLEANFILES = \
  53. $(GOBJECTS) \
  54. $(TESTS:tests/%.scm=%.log)