Makefile.am 2.9 KB

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