1998-10-19 15:25:43 +00:00
|
|
|
## Process this file with Automake to create Makefile.in
|
|
|
|
|
## Jim Blandy <jimb@red-bean.com> --- September 1997
|
|
|
|
|
##
|
2015-03-06 23:56:14 -05:00
|
|
|
## Copyright (C) 1998, 1999, 2001, 2006-2009, 2011-2015
|
|
|
|
|
## Free Software Foundation, Inc.
|
1998-10-19 15:25:43 +00:00
|
|
|
##
|
|
|
|
|
## This file is part of GUILE.
|
|
|
|
|
##
|
2009-06-17 00:22:09 +01:00
|
|
|
## GUILE is free software; you can redistribute it and/or modify it
|
|
|
|
|
## under the terms of the GNU Lesser General Public License as
|
|
|
|
|
## published by the Free Software Foundation; either version 3, or
|
1998-10-19 15:25:43 +00:00
|
|
|
## (at your option) any later version.
|
|
|
|
|
##
|
|
|
|
|
## GUILE is distributed in the hope that it will be useful, but
|
|
|
|
|
## WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
2009-06-17 00:22:09 +01:00
|
|
|
## GNU Lesser General Public License for more details.
|
1998-10-19 15:25:43 +00:00
|
|
|
##
|
2009-06-17 00:22:09 +01:00
|
|
|
## You should have received a copy of the GNU Lesser General Public
|
|
|
|
|
## License along with GUILE; see the file COPYING.LESSER. If not,
|
|
|
|
|
## write to the Free Software Foundation, Inc., 51 Franklin Street,
|
|
|
|
|
## Fifth Floor, Boston, MA 02110-1301 USA
|
1998-10-03 18:45:14 +00:00
|
|
|
|
2011-05-30 23:02:03 +02:00
|
|
|
bin_SCRIPTS = guile-config guild
|
2015-01-22 13:30:25 +01:00
|
|
|
EXTRA_DIST= \
|
|
|
|
|
guile.m4 ChangeLog-2008 \
|
|
|
|
|
guile-$(GUILE_EFFECTIVE_VERSION).pc.in \
|
|
|
|
|
guile-$(GUILE_EFFECTIVE_VERSION)-uninstalled.pc.in \
|
2011-05-30 23:02:03 +02:00
|
|
|
guild.in guile-config.in
|
|
|
|
|
|
|
|
|
|
# What we now call `guild' used to be known as `guile-tools'.
|
2012-09-03 22:40:46 +02:00
|
|
|
install-exec-hook:
|
2012-05-14 19:21:35 +02:00
|
|
|
guild="`echo $(ECHO_N) guild \
|
2013-04-10 08:23:16 -04:00
|
|
|
| $(SED) -e '$(program_transform_name)'`" ; \
|
2012-05-14 19:21:35 +02:00
|
|
|
guile_tools="`echo $(ECHO_N) guile-tools \
|
2013-04-10 08:23:16 -04:00
|
|
|
| $(SED) -e '$(program_transform_name)'`" ; \
|
2012-05-14 19:21:35 +02:00
|
|
|
cd $(DESTDIR)$(bindir) && rm -f "$$guile_tools" && \
|
|
|
|
|
$(LN_S) "$$guild" "$$guile_tools"
|
2009-03-27 14:03:03 -07:00
|
|
|
|
|
|
|
|
pkgconfigdir = $(libdir)/pkgconfig
|
2015-01-22 13:30:25 +01:00
|
|
|
pkgconfig_DATA = guile-$(GUILE_EFFECTIVE_VERSION).pc
|
1998-10-03 18:45:14 +00:00
|
|
|
|
1999-10-05 22:35:06 +00:00
|
|
|
## FIXME: in the future there will be direct automake support for
|
|
|
|
|
## doing this. When that happens, switch over.
|
|
|
|
|
aclocaldir = $(datadir)/aclocal
|
|
|
|
|
aclocal_DATA = guile.m4
|
2009-09-23 22:45:07 +02:00
|
|
|
|
2014-12-03 18:59:00 +01:00
|
|
|
# Script to instantiate substitution variables found on the standard
|
|
|
|
|
# input. We do this from the Makefile because we need things like
|
|
|
|
|
# $(program_transform_name), which are not usable from 'configure.ac'.
|
2015-03-06 23:56:14 -05:00
|
|
|
#
|
|
|
|
|
# Some of these may include things like "-Wl,-rpath", which is why we do
|
|
|
|
|
# not use a comma to separate the 's' arguments.
|
2014-12-03 23:09:12 +01:00
|
|
|
substitute = \
|
|
|
|
|
guile="`echo guile | $(SED) -e '$(program_transform_name)'`" ; \
|
|
|
|
|
guild="`echo guild | $(SED) -e '$(program_transform_name)'`" ; \
|
|
|
|
|
installed_guile="@bindir@/$$guile" ; \
|
2015-03-06 23:56:14 -05:00
|
|
|
$(SED) -e "s|[@]PACKAGE_NAME[@]|$(PACKAGE_NAME)|g" \
|
|
|
|
|
-e "s|[@]PACKAGE_BUGREPORT[@]|$(PACKAGE_BUGREPORT)|g" \
|
|
|
|
|
-e "s|[@]GUILE_EFFECTIVE_VERSION[@]|$(GUILE_EFFECTIVE_VERSION)|g" \
|
|
|
|
|
-e "s|[@]GUILE_VERSION[@]|$(GUILE_VERSION)|g" \
|
|
|
|
|
-e "s|[@]GUILE_CFLAGS[@]|$(GUILE_CFLAGS)|g" \
|
|
|
|
|
-e "s|[@]GUILE_LIBS[@]|$(GUILE_LIBS)|g" \
|
|
|
|
|
-e "s|[@]LIBGUILE_INTERFACE[@]|$(LIBGUILE_INTERFACE)|g" \
|
2014-12-03 23:09:12 +01:00
|
|
|
$(dependency_substitutions) \
|
2015-03-06 23:56:14 -05:00
|
|
|
-e "s|[@]PKG_CONFIG[@]|$(PKG_CONFIG)|g" \
|
|
|
|
|
-e "s|[@]pkgconfigdir[@]|$(pkgconfigdir)|g" \
|
|
|
|
|
-e "s|[@]prefix[@]|$(prefix)|g" \
|
|
|
|
|
-e "s|[@]exec_prefix[@]|$(exec_prefix)|g" \
|
|
|
|
|
-e "s|[@]bindir[@]|$(bindir)|g" \
|
|
|
|
|
-e "s|[@]libdir[@]|$(libdir)|g" \
|
|
|
|
|
-e "s|[@]includedir[@]|$(includedir)|g" \
|
|
|
|
|
-e "s|[@]datarootdir[@]|$(datarootdir)|g" \
|
|
|
|
|
-e "s|[@]datadir[@]|$(datadir)|g" \
|
|
|
|
|
-e "s|[@]sitedir[@]|$(sitedir)|g" \
|
|
|
|
|
-e "s|[@]guile[@]|$$guile|g" \
|
|
|
|
|
-e "s|[@]guild[@]|$$guild|g" \
|
|
|
|
|
-e "s|[@]installed_guile[@]|$$installed_guile|g"
|
2014-12-03 18:59:00 +01:00
|
|
|
|
2017-05-22 14:13:20 +02:00
|
|
|
# Substitutions for dependencies that appear in 'guile-3.0.pc'.
|
2014-12-03 23:09:12 +01:00
|
|
|
dependency_substitutions = \
|
2014-12-06 15:57:23 +01:00
|
|
|
-e "s|[@]BDW_GC_CFLAGS[@]|$(BDW_GC_CFLAGS)|g" \
|
|
|
|
|
-e "s|[@]BDW_GC_LIBS[@]|$(BDW_GC_LIBS)|g" \
|
|
|
|
|
-e "s|[@]LIB_CLOCK_GETTIME[@]|$(LIB_CLOCK_GETTIME)|g" \
|
|
|
|
|
-e "s|[@]LIBGMP[@]|$(LIBGMP)|g" \
|
|
|
|
|
-e "s|[@]LIBLTDL[@]|$(LIBLTDL)|g" \
|
|
|
|
|
-e "s|[@]LIBFFI_LIBS[@]|$(LIBFFI_LIBS)|g" \
|
|
|
|
|
-e "s|[@]LIBUNISTRING[@]|$(LIBUNISTRING)|g" \
|
|
|
|
|
-e "s|[@]LIBICONV[@]|$(LIBICONV)|g" \
|
|
|
|
|
-e "s|[@]LIBINTL[@]|$(LIBINTL)|g" \
|
|
|
|
|
-e "s|[@]LIBSOCKET[@]|$(LIBSOCKET)|g" \
|
|
|
|
|
-e "s|[@]SERVENT_LIB[@]|$(SERVENT_LIB)|g" \
|
|
|
|
|
-e "s|[@]HOSTENT_LIB[@]|$(HOSTENT_LIB)|g" \
|
|
|
|
|
-e "s|[@]GETADDRINFO_LIB[@]|$(GETADDRINFO_LIB)|g" \
|
|
|
|
|
-e "s|[@]INET_NTOP_LIB[@]|$(INET_NTOP_LIB)|g" \
|
|
|
|
|
-e "s|[@]INET_PTON_LIB[@]|$(INET_PTON_LIB)|g"
|
2014-12-03 23:09:12 +01:00
|
|
|
|
2015-01-22 13:30:25 +01:00
|
|
|
guile-$(GUILE_EFFECTIVE_VERSION).pc: guile-$(GUILE_EFFECTIVE_VERSION).pc.in
|
2014-12-03 18:59:00 +01:00
|
|
|
$(substitute) < "$<" > "$@.out"
|
|
|
|
|
mv "$@.out" "$@"
|
|
|
|
|
|
2015-01-22 13:30:25 +01:00
|
|
|
guile-$(GUILE_EFFECTIVE_VERSION)-uninstalled.pc: guile-$(GUILE_EFFECTIVE_VERSION)-uninstalled.pc.in
|
2014-12-03 18:59:00 +01:00
|
|
|
$(substitute) < "$<" > "$@.out"
|
|
|
|
|
mv "$@.out" "$@"
|
|
|
|
|
|
2009-12-15 10:57:59 +01:00
|
|
|
guile-config: $(srcdir)/guile-config.in $(top_builddir)/config.status
|
2014-12-03 18:59:00 +01:00
|
|
|
$(substitute) < "$<" > "$@.out"
|
2014-04-24 23:46:20 +02:00
|
|
|
chmod +x "$@.out"
|
|
|
|
|
mv "$@.out" "$@"
|
2009-09-26 00:51:50 +01:00
|
|
|
|
2014-04-24 11:16:21 +02:00
|
|
|
guild: $(srcdir)/guild.in $(top_builddir)/config.status
|
2014-12-03 18:59:00 +01:00
|
|
|
$(substitute) < "$<" > "$@.out"
|
2014-04-24 11:16:21 +02:00
|
|
|
chmod +x "$@.out"
|
|
|
|
|
mv "$@.out" "$@"
|
|
|
|
|
|
2014-12-03 18:59:00 +01:00
|
|
|
CLEANFILES = \
|
|
|
|
|
guile-config guild \
|
2015-01-22 13:30:25 +01:00
|
|
|
guile-$(GUILE_EFFECTIVE_VERSION).pc guile-$(GUILE_EFFECTIVE_VERSION)-uninstalled.pc
|