Makefile.am 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. ## Process this file with Automake to create Makefile.in
  2. ## Jim Blandy <jimb@red-bean.com> --- September 1997
  3. ##
  4. ## Copyright (C) 1998, 1999, 2001, 2006-2009, 2011-2015
  5. ## 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. bin_SCRIPTS = guile-config guild
  24. EXTRA_DIST= \
  25. guile.m4 ChangeLog-2008 \
  26. guile-$(GUILE_EFFECTIVE_VERSION).pc.in \
  27. guile-$(GUILE_EFFECTIVE_VERSION)-uninstalled.pc.in \
  28. guild.in guile-config.in
  29. # What we now call `guild' used to be known as `guile-tools'.
  30. install-exec-hook:
  31. guild="`echo $(ECHO_N) guild \
  32. | $(SED) -e '$(program_transform_name)'`" ; \
  33. guile_tools="`echo $(ECHO_N) guile-tools \
  34. | $(SED) -e '$(program_transform_name)'`" ; \
  35. cd $(DESTDIR)$(bindir) && rm -f "$$guile_tools" && \
  36. $(LN_S) "$$guild" "$$guile_tools"
  37. pkgconfigdir = $(libdir)/pkgconfig
  38. pkgconfig_DATA = guile-$(GUILE_EFFECTIVE_VERSION).pc
  39. ## FIXME: in the future there will be direct automake support for
  40. ## doing this. When that happens, switch over.
  41. aclocaldir = $(datadir)/aclocal
  42. aclocal_DATA = guile.m4
  43. # Script to instantiate substitution variables found on the standard
  44. # input. We do this from the Makefile because we need things like
  45. # $(program_transform_name), which are not usable from 'configure.ac'.
  46. #
  47. # Some of these may include things like "-Wl,-rpath", which is why we do
  48. # not use a comma to separate the 's' arguments.
  49. substitute = \
  50. guile="`echo guile | $(SED) -e '$(program_transform_name)'`" ; \
  51. guild="`echo guild | $(SED) -e '$(program_transform_name)'`" ; \
  52. installed_guile="@bindir@/$$guile" ; \
  53. $(SED) -e "s|[@]PACKAGE_NAME[@]|$(PACKAGE_NAME)|g" \
  54. -e "s|[@]PACKAGE_BUGREPORT[@]|$(PACKAGE_BUGREPORT)|g" \
  55. -e "s|[@]GUILE_EFFECTIVE_VERSION[@]|$(GUILE_EFFECTIVE_VERSION)|g" \
  56. -e "s|[@]GUILE_VERSION[@]|$(GUILE_VERSION)|g" \
  57. -e "s|[@]GUILE_CFLAGS[@]|$(GUILE_CFLAGS)|g" \
  58. -e "s|[@]GUILE_LIBS[@]|$(GUILE_LIBS)|g" \
  59. -e "s|[@]LIBGUILE_INTERFACE[@]|$(LIBGUILE_INTERFACE)|g" \
  60. $(dependency_substitutions) \
  61. -e "s|[@]PKG_CONFIG[@]|$(PKG_CONFIG)|g" \
  62. -e "s|[@]pkgconfigdir[@]|$(pkgconfigdir)|g" \
  63. -e "s|[@]prefix[@]|$(prefix)|g" \
  64. -e "s|[@]exec_prefix[@]|$(exec_prefix)|g" \
  65. -e "s|[@]bindir[@]|$(bindir)|g" \
  66. -e "s|[@]libdir[@]|$(libdir)|g" \
  67. -e "s|[@]includedir[@]|$(includedir)|g" \
  68. -e "s|[@]datarootdir[@]|$(datarootdir)|g" \
  69. -e "s|[@]datadir[@]|$(datadir)|g" \
  70. -e "s|[@]sitedir[@]|$(sitedir)|g" \
  71. -e "s|[@]guile[@]|$$guile|g" \
  72. -e "s|[@]guild[@]|$$guild|g" \
  73. -e "s|[@]installed_guile[@]|$$installed_guile|g"
  74. # Substitutions for dependencies that appear in 'guile-3.0.pc'.
  75. dependency_substitutions = \
  76. -e "s|[@]BDW_GC_CFLAGS[@]|$(BDW_GC_CFLAGS)|g" \
  77. -e "s|[@]BDW_GC_LIBS[@]|$(BDW_GC_LIBS)|g" \
  78. -e "s|[@]LIB_CLOCK_GETTIME[@]|$(LIB_CLOCK_GETTIME)|g" \
  79. -e "s|[@]LIBGMP[@]|$(LIBGMP)|g" \
  80. -e "s|[@]LIBLTDL[@]|$(LIBLTDL)|g" \
  81. -e "s|[@]LIBFFI_LIBS[@]|$(LIBFFI_LIBS)|g" \
  82. -e "s|[@]LIBUNISTRING[@]|$(LIBUNISTRING)|g" \
  83. -e "s|[@]LIBICONV[@]|$(LIBICONV)|g" \
  84. -e "s|[@]LIBINTL[@]|$(LIBINTL)|g" \
  85. -e "s|[@]LIBSOCKET[@]|$(LIBSOCKET)|g" \
  86. -e "s|[@]SERVENT_LIB[@]|$(SERVENT_LIB)|g" \
  87. -e "s|[@]HOSTENT_LIB[@]|$(HOSTENT_LIB)|g" \
  88. -e "s|[@]GETADDRINFO_LIB[@]|$(GETADDRINFO_LIB)|g" \
  89. -e "s|[@]INET_NTOP_LIB[@]|$(INET_NTOP_LIB)|g" \
  90. -e "s|[@]INET_PTON_LIB[@]|$(INET_PTON_LIB)|g"
  91. guile-$(GUILE_EFFECTIVE_VERSION).pc: guile-$(GUILE_EFFECTIVE_VERSION).pc.in
  92. $(substitute) < "$<" > "$@.out"
  93. mv "$@.out" "$@"
  94. guile-$(GUILE_EFFECTIVE_VERSION)-uninstalled.pc: guile-$(GUILE_EFFECTIVE_VERSION)-uninstalled.pc.in
  95. $(substitute) < "$<" > "$@.out"
  96. mv "$@.out" "$@"
  97. guile-config: $(srcdir)/guile-config.in $(top_builddir)/config.status
  98. $(substitute) < "$<" > "$@.out"
  99. chmod +x "$@.out"
  100. mv "$@.out" "$@"
  101. guild: $(srcdir)/guild.in $(top_builddir)/config.status
  102. $(substitute) < "$<" > "$@.out"
  103. chmod +x "$@.out"
  104. mv "$@.out" "$@"
  105. CLEANFILES = \
  106. guile-config guild \
  107. guile-$(GUILE_EFFECTIVE_VERSION).pc guile-$(GUILE_EFFECTIVE_VERSION)-uninstalled.pc