Makefile.am 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. ## Process this file with automake to produce Makefile.in.
  2. ##
  3. ## Copyright (C) 1998, 1999, 2000, 2001, 2002, 2006, 2007,
  4. ## 2008, 2009, 2010, 2011, 2012, 2013,
  5. ## 2014, 2015, 2016, 2022, 2023 Free Software Foundation, Inc.
  6. ##
  7. ## This file is part of GUILE.
  8. ##
  9. ## GUILE is free software; you can redistribute it and/or modify it
  10. ## under the terms of the GNU Lesser General Public License as
  11. ## published by the Free Software Foundation; either version 3, or
  12. ## (at your option) any later version.
  13. ##
  14. ## GUILE 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
  17. ## GNU Lesser General Public License for more details.
  18. ##
  19. ## You should have received a copy of the GNU Lesser General Public
  20. ## License along with GUILE; see the file COPYING.LESSER. If not,
  21. ## write to the Free Software Foundation, Inc., 51 Franklin Street,
  22. ## Fifth Floor, Boston, MA 02110-1301 USA
  23. # want automake 1.10 or higher so that AM_GNU_GETTEXT can tell automake that
  24. # config.rpath is needed
  25. #
  26. AUTOMAKE_OPTIONS = 1.10
  27. # The test-suite goes last so that it can depend on everything else
  28. # (e.g. guile-procedures.txt).
  29. SUBDIRS = \
  30. lib \
  31. meta \
  32. libguile \
  33. module \
  34. stage0 \
  35. stage1 \
  36. stage2 \
  37. guile-readline \
  38. examples \
  39. doc \
  40. . \
  41. test-suite
  42. DIST_SUBDIRS = $(SUBDIRS) prebuilt
  43. libguileincludedir = $(pkgincludedir)/$(GUILE_EFFECTIVE_VERSION)
  44. libguileinclude_HEADERS = libguile.h
  45. schemelibdir = $(pkgdatadir)/$(GUILE_EFFECTIVE_VERSION)
  46. schemelib_DATA = libguile/guile-procedures.txt
  47. # Our own implementation of Gnulib's lock interface.
  48. noinst_HEADERS = lib/glthread/lock.h
  49. # Our lib/glthreads/lock.h header indirectly includes
  50. # libguile/scmconfig.h. Make sure it is built before we recurse into
  51. # lib/.
  52. BUILT_SOURCES = libguile/scmconfig.h
  53. libguile/scmconfig.h:
  54. $(MAKE) -C libguile scmconfig.h
  55. # Build it here so that (given SUBDIRS order) the modules are available
  56. libguile/guile-procedures.txt:
  57. $(MAKE) -C libguile guile-procedures.txt
  58. EXTRA_DIST = LICENSE HACKING GUILE-VERSION \
  59. am/maintainer-dirs \
  60. am/guilec \
  61. am/ChangeLog-2008 \
  62. m4/ChangeLog-2008 \
  63. m4/gnulib-cache.m4 \
  64. ChangeLog-2008 \
  65. .version \
  66. gnulib-local/lib/localcharset.h.diff \
  67. gnulib-local/lib/localcharset.c.diff \
  68. gnulib-local/m4/clock_time.m4.diff \
  69. gnulib-local/build-aux/git-version-gen.diff \
  70. libguile/texi-fragments-to-docstrings \
  71. gdbinit \
  72. guix.scm \
  73. .guix/modules/guile-package.scm \
  74. .guix/manifest.scm
  75. ACLOCAL_AMFLAGS = -I m4
  76. DISTCLEANFILES = check-guile.log
  77. DISTCHECK_CONFIGURE_FLAGS = --enable-error-on-warning --enable-mini-gmp
  78. dist-hook: gen-ChangeLog gen-tarball-version \
  79. assert-no-store-file-names ensure-guile-readline
  80. # 'guile-readline/Makefile.am' conditionally includes various files to
  81. # the distribution. Bail out when 'HAVE_READLINE' is false.
  82. if HAVE_READLINE
  83. ensure-guile-readline:
  84. @true
  85. else !HAVE_READLINE
  86. ensure-guile-readline:
  87. @echo "error: Readline support is required for 'make dist'." >&2
  88. @exit 1
  89. endif !HAVE_READLINE
  90. .PHONY: ensure-guile-readline
  91. clean-local:
  92. rm -rf cache/
  93. gen_start_rev = 61db429e251bfd2f75cb4632972e0238056eb24b
  94. .PHONY: gen-ChangeLog
  95. gen-ChangeLog:
  96. if test -d .git; then \
  97. $(top_srcdir)/build-aux/gitlog-to-changelog \
  98. $(gen_start_rev)..HEAD > $(distdir)/cl-t; \
  99. rm -f $(distdir)/ChangeLog; \
  100. mv $(distdir)/cl-t $(distdir)/ChangeLog; \
  101. fi
  102. # Make sure we're not shipping a file that embeds a /gnu/store file
  103. # name, for maintainers who use Guix.
  104. .PHONY: assert-no-store-file-names
  105. assert-no-store-file-names:
  106. if grep --exclude=ChangeLog -rE "/gnu/store/[a-z0-9]{32}-" $(distdir) ; \
  107. then \
  108. echo "error: store file names embedded in the distribution" >&2 ; \
  109. exit 1 ; \
  110. fi
  111. BUILT_SOURCES += $(top_srcdir)/.version
  112. $(top_srcdir)/.version: Makefile
  113. echo $(VERSION) > $@-t && mv $@-t $@
  114. gen-tarball-version:
  115. echo $(VERSION) > $(distdir)/.tarball-version
  116. include benchmark-suite/local.mk
  117. include gc-benchmarks/local.mk
  118. # Makefile.am ends here