Makefile.am 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. # Guile-zstd --- GNU Guile bindings to the zstd compression library.
  2. # Copyright © 2020 Ludovic Courtès <ludo@gnu.org>
  3. #
  4. # This file is part of Guile-zstd.
  5. #
  6. # Guile-zstd is free software; you can redistribute it and/or modify it
  7. # under the terms of the GNU General Public License as published by
  8. # the Free Software Foundation; either version 3 of the License, or (at
  9. # your option) any later version.
  10. #
  11. # Guile-zstd is distributed in the hope that it will be useful, but
  12. # WITHOUT ANY WARRANTY; without even the implied warranty of
  13. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. # GNU General Public License for more details.
  15. #
  16. # You should have received a copy of the GNU General Public License
  17. # along with Guile-zstd. If not, see <http://www.gnu.org/licenses/>.
  18. nodist_noinst_SCRIPTS = pre-inst-env
  19. EXTRA_DIST = zstd.scm guix.scm
  20. SOURCES = zstd.scm zstd/config.scm
  21. GOBJECTS = $(SOURCES:%.scm=%.go)
  22. nobase_guilemodule_DATA = $(SOURCES)
  23. nobase_guileobject_DATA = $(GOBJECTS)
  24. # Make sure source files are installed first, so that the mtime of
  25. # installed compiled files is greater than that of installed source
  26. # files. See
  27. # <http://lists.gnu.org/archive/html/guile-devel/2010-07/msg00125.html>
  28. # for details.
  29. guile_install_go_files = install-nobase_guileobjectDATA
  30. $(guile_install_go_files): install-nobase_guilemoduleDATA
  31. GUILE_WARNINGS = -Wunbound-variable -Warity-mismatch -Wformat
  32. SUFFIXES = .scm .go
  33. .scm.go:
  34. $(AM_V_GEN)$(top_builddir)/pre-inst-env $(GUILE_TOOLS) compile $(GUILE_TARGET) $(GUILE_WARNINGS) -o "$@" "$<"
  35. BUILT_SOURCES = zstd/config.scm
  36. TESTS = tests/zstd.scm
  37. EXTRA_DIST += $(TESTS) build-aux/test-driver.scm
  38. TEST_EXTENSIONS = .scm
  39. SCM_LOG_DRIVER = \
  40. $(top_builddir)/pre-inst-env \
  41. $(GUILE) --no-auto-compile -e main \
  42. $(top_srcdir)/build-aux/test-driver.scm
  43. AM_SCM_LOG_FLAGS = --no-auto-compile -L "$(top_srcdir)"
  44. AM_TESTS_ENVIRONMENT = abs_top_srcdir="$(abs_top_srcdir)"
  45. CLEANFILES = \
  46. $(GOBJECTS) \
  47. $(TESTS:tests/%.scm=%.log)