Makefile.am 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  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 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. SUBDIRS = \
  28. lib \
  29. meta \
  30. libguile \
  31. bootstrap \
  32. module \
  33. guile-readline \
  34. examples \
  35. emacs \
  36. test-suite \
  37. benchmark-suite \
  38. gc-benchmarks \
  39. am \
  40. doc
  41. DIST_SUBDIRS = $(SUBDIRS) prebuilt
  42. libguileincludedir = $(pkgincludedir)/$(GUILE_EFFECTIVE_VERSION)
  43. libguileinclude_HEADERS = libguile.h
  44. schemelibdir = $(pkgdatadir)/$(GUILE_EFFECTIVE_VERSION)
  45. schemelib_DATA = libguile/guile-procedures.txt
  46. # Our own implementation of Gnulib's lock interface.
  47. noinst_HEADERS = lib/glthread/lock.h
  48. # Our lib/glthreads/lock.h header indirectly includes
  49. # libguile/scmconfig.h. Make sure it is built before we recurse into
  50. # lib/.
  51. BUILT_SOURCES = libguile/scmconfig.h
  52. libguile/scmconfig.h:
  53. $(MAKE) -C libguile scmconfig.h
  54. # Build it from here so that all the modules are compiled by the time we
  55. # build it.
  56. libguile/guile-procedures.txt: libguile/guile-procedures.texi
  57. $(AM_V_GEN) \
  58. $(top_builddir)/meta/guile --no-auto-compile \
  59. "$(srcdir)/libguile/texi-fragments-to-docstrings" \
  60. "$(builddir)/libguile/guile-procedures.texi" \
  61. > $@.tmp
  62. @mv $@.tmp $@
  63. EXTRA_DIST = LICENSE HACKING GUILE-VERSION \
  64. m4/ChangeLog-2008 \
  65. m4/gnulib-cache.m4 \
  66. ChangeLog-2008 \
  67. .version \
  68. gnulib-local/lib/localcharset.h.diff \
  69. gnulib-local/lib/localcharset.c.diff \
  70. gnulib-local/m4/clock_time.m4.diff \
  71. gnulib-local/build-aux/git-version-gen.diff \
  72. libguile/texi-fragments-to-docstrings \
  73. gdbinit
  74. TESTS = check-guile
  75. TESTS_ENVIRONMENT = @LOCALCHARSET_TESTS_ENVIRONMENT@
  76. ACLOCAL_AMFLAGS = -I m4
  77. CLEANFILES = libguile/guile-procedures.txt
  78. DISTCLEANFILES = check-guile.log
  79. DISTCHECK_CONFIGURE_FLAGS = --enable-error-on-warning
  80. dist-hook: gen-ChangeLog gen-tarball-version assert-no-store-file-names
  81. clean-local:
  82. rm -rf cache/
  83. CONFIG_STATUS_DEPENDENCIES = GUILE-VERSION
  84. gen_start_rev = 61db429e251bfd2f75cb4632972e0238056eb24b
  85. .PHONY: gen-ChangeLog
  86. gen-ChangeLog:
  87. if test -d .git; then \
  88. $(top_srcdir)/build-aux/gitlog-to-changelog \
  89. $(gen_start_rev)..HEAD > $(distdir)/cl-t; \
  90. rm -f $(distdir)/ChangeLog; \
  91. mv $(distdir)/cl-t $(distdir)/ChangeLog; \
  92. fi
  93. # Make sure we're not shipping a file that embeds a /gnu/store file
  94. # name, for maintainers who use Guix.
  95. .PHONY: assert-no-store-file-names
  96. assert-no-store-file-names:
  97. if grep -rE "/gnu/store/[a-z0-9]{32}-" $(distdir) ; \
  98. then \
  99. echo "error: store file names embedded in the distribution" >&2 ; \
  100. exit 1 ; \
  101. fi
  102. BUILT_SOURCES += $(top_srcdir)/.version
  103. $(top_srcdir)/.version:
  104. echo $(VERSION) > $@-t && mv $@-t $@
  105. gen-tarball-version:
  106. echo $(VERSION) > $(distdir)/.tarball-version
  107. # Makefile.am ends here