Makefile.am 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. ## Copyright (C) 2015, 2017 Christine Lemmer-Webber <cwebber@dustycloud.org>
  2. ## parts of this automake recipe borrowed from:
  3. ## GNU Guix --- Functional package management for GNU
  4. ## Copyright © 2012, 2013, 2014, 2015, 2019 Ludovic Courtès <ludo@gnu.org>
  5. ## Copyright © 2013 Andreas Enge <andreas@enge.fr>
  6. ## Copyright © 2015 Alex Kost <alezost@gmail.com>
  7. ## Sly
  8. ## Copyright (C) 2013, 2014 David Thompson <dthompson2@worcester.edu>
  9. ## This program is free software: you can redistribute it and/or
  10. ## modify it under the terms of the GNU General Public License as
  11. ## published by the Free Software Foundation, either version 3 of the
  12. ## License, or (at your option) any later version.
  13. ##
  14. ## This program is distributed in the hope that it will be useful, but
  15. ## WITHOUT ANY WARRANTY; without even the implied warranty of
  16. ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  17. ## General Public License for more details.
  18. ##
  19. ## You should have received a copy of the GNU General Public License
  20. ## along with this program. If not, see
  21. ## <http://www.gnu.org/licenses/>.
  22. GOBJECTS = $(SOURCES:%.scm=%.go)
  23. nobase_mod_DATA = $(SOURCES)
  24. nobase_go_DATA = $(GOBJECTS)
  25. # Make sure source files are installed first, so that the mtime of
  26. # installed compiled files is greater than that of installed source
  27. # files. See
  28. # <http://lists.gnu.org/archive/html/guile-devel/2010-07/msg00125.html>
  29. # for details.
  30. guile_install_go_files = install-nobase_goDATA
  31. $(guile_install_go_files): install-nobase_modDATA
  32. GUILE_WARNINGS = -Wunbound-variable -Warity-mismatch -Wformat
  33. SUFFIXES = .scm .go
  34. .scm.go:
  35. $(AM_V_GEN)$(top_builddir)/pre-inst-env $(GUILD) \
  36. compile $(GUILE_TARGET) $(GUILE_WARNINGS) -o "$@" "$<"
  37. moddir=$(prefix)/share/guile/site/$(GUILE_EFFECTIVE_VERSION)
  38. godir = $(libdir)/guile/$(GUILE_EFFECTIVE_VERSION)/site-ccache
  39. SOURCES = \
  40. gcrypt/base16.scm \
  41. gcrypt/base64.scm \
  42. gcrypt/common.scm \
  43. gcrypt/hash.scm \
  44. gcrypt/hmac.scm \
  45. gcrypt/internal.scm \
  46. gcrypt/mac.scm \
  47. gcrypt/package-config.scm \
  48. gcrypt/pk-crypto.scm \
  49. gcrypt/random.scm \
  50. gcrypt/utils.scm
  51. TESTS = \
  52. tests/base16.scm \
  53. tests/base64.scm \
  54. tests/hash.scm \
  55. tests/hmac.scm \
  56. tests/mac.scm \
  57. tests/pk-crypto.scm
  58. TEST_EXTENSIONS = .scm
  59. SCM_LOG_DRIVER = \
  60. $(top_builddir)/pre-inst-env \
  61. $(GUILE) --no-auto-compile -e main \
  62. $(top_srcdir)/build-aux/test-driver.scm
  63. # Tell 'build-aux/test-driver.scm' to display only source file names,
  64. # not indivdual test names.
  65. AM_SCM_LOG_DRIVER_FLAGS = --brief=yes
  66. AM_SCM_LOG_FLAGS = --no-auto-compile -L $(top_srcdir)
  67. CLEANFILES = \
  68. $(GOBJECTS) \
  69. $(TESTS:tests/%.scm=%.log) \
  70. *.log *.tar.gz
  71. EXTRA_DIST = \
  72. $(SOURCES) \
  73. $(TESTS) \
  74. guix.scm \
  75. build-aux/test-driver.scm \
  76. pre-inst-env.in
  77. info_TEXINFOS = guile-gcrypt.texi
  78. guile_gcrypt_TEXINFOS = fdl-1.3.texi