Makefile.am 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. ## Process this file with automake to produce Makefile.in.
  2. bin_SCRIPTS = bin/cuirass
  3. noinst_SCRIPTS = pre-inst-env
  4. dist_pkgmodule_DATA = src/cuirass/base.scm
  5. nodist_pkgmodule_DATA = $(dist_pkgmodule_DATA:%.scm=%.go)
  6. TEST_EXTENSIONS = .scm
  7. AM_TESTS_ENVIRONMENT = env GUILE_AUTO_COMPILE='0'
  8. SCM_LOG_DRIVER = \
  9. $(builddir)/pre-inst-env $(GUILE) \
  10. $(srcdir)/build-aux/test-driver.scm
  11. TESTS = tests/base.scm
  12. # Unset 'GUILE_LOAD_COMPILED_PATH' altogether while compiling. Otherwise, if
  13. # $GUILE_LOAD_COMPILED_PATH contains $(cuirassmoduledir), we may find .go
  14. # files in there that are newer than the local .scm files (for instance
  15. # because the user ran 'make install' recently). When that happens, we end up
  16. # loading those previously-installed .go files, which may be stale, thereby
  17. # breaking the whole thing. Set GUILE_AUTO_COMPILE to 0 to avoid
  18. # auto-compiling guild.
  19. #
  20. # XXX: Use the C locale for when Guile lacks
  21. # <http://git.sv.gnu.org/cgit/guile.git/commit/?h=stable-2.0&id=e2c6bf3866d1186c60bacfbd4fe5037087ee5e3f>.
  22. .scm.go:
  23. $(guilec_verbose)$(MKDIR_P) `dirname "$@"`; \
  24. export GUILE_AUTO_COMPILE=0 ; unset GUILE_LOAD_COMPILED_PATH; \
  25. LC_ALL=C \
  26. $(top_builddir)/pre-inst-env $(GUILD) compile \
  27. --load-path="$(top_builddir)/src" \
  28. --load-path="$(top_srcdir)/src" \
  29. --warn=format --warn=unbound-variable --warn=arity-mismatch \
  30. --target="$(host)" --output="$@" "$<" $(devnull_verbose)
  31. dist-hook: gen-ChangeLog
  32. .PHONY: gen-ChangeLog
  33. gen-ChangeLog:
  34. $(AM_V_GEN)if test -d $(srcdir)/.git; then \
  35. log_fix="$(srcdir)/build-aux/git-log-fix"; \
  36. test -e "$$log_fix" \
  37. && amend_git_log="--amend=$$log_fix" \
  38. || amend_git_log=; \
  39. $(top_srcdir)/build-aux/gitlog-to-changelog \
  40. $$amend_git_log > $(distdir)/cl-t && \
  41. { rm -f $(distdir)/ChangeLog && \
  42. mv $(distdir)/cl-t $(distdir)/ChangeLog; } \
  43. fi
  44. EXTRA_DIST = \
  45. .dir-locals.el \
  46. $(TESTS)
  47. CLEANFILES = $(nodist_pkgmodule_DATA)
  48. ## -------------- ##
  49. ## Silent rules. ##
  50. ## -------------- ##
  51. guilec_verbose = $(guilec_verbose_@AM_V@)
  52. guilec_verbose_ = $(guilec_verbose_@AM_DEFAULT_V@)
  53. guilec_verbose_0 = @echo " GUILEC " $@;
  54. devnull_verbose = $(devnull_verbose_@AM_V@)
  55. devnull_verbose_ = $(devnull_verbose_@AM_DEFAULT_V@)
  56. devnull_verbose_0 = >/dev/null