summaryrefslogtreecommitdiff
path: root/meta
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2012-05-14 19:21:35 +0200
committerLudovic Courtès <ludo@gnu.org>2012-05-14 19:21:49 +0200
commit3742d778fbc6ea879437c19aeebe09179dceffdf (patch)
tree354dd138fb684b0f046256fdd34020a9f2b8638a /meta
parent8a74ffe88a445220f9399cc49d4808baf51651c2 (diff)
Honor $(program_transform_name) for the `guile-tools' symlink.
Fixes <http://bugs.gnu.org/11451>. Reported by Cyprien Nicolas <c.nicolas@gmail.com>. * meta/Makefile.am (install-data-hook): Honor $(program_transform_name).
Diffstat (limited to 'meta')
-rw-r--r--meta/Makefile.am11
1 files changed, 8 insertions, 3 deletions
diff --git a/meta/Makefile.am b/meta/Makefile.am
index f26fc4436..a05730d13 100644
--- a/meta/Makefile.am
+++ b/meta/Makefile.am
@@ -1,7 +1,8 @@
## Process this file with Automake to create Makefile.in
## Jim Blandy <jimb@red-bean.com> --- September 1997
##
-## Copyright (C) 1998, 1999, 2001, 2006, 2007, 2008, 2009, 2011 Free Software Foundation, Inc.
+## Copyright (C) 1998, 1999, 2001, 2006, 2007, 2008, 2009, 2011,
+## 2012 Free Software Foundation, Inc.
##
## This file is part of GUILE.
##
@@ -28,8 +29,12 @@ EXTRA_DIST= \
# What we now call `guild' used to be known as `guile-tools'.
install-data-hook:
- cd $(DESTDIR)$(bindir) && rm -f guile-tools$(EXEEXT) && \
- $(LN_S) guild$(EXEEXT) guile-tools$(EXEEXT)
+ guild="`echo $(ECHO_N) guild \
+ | $(SED) -e '$(program_transform_name)'`$(EXEEXT)" ; \
+ guile_tools="`echo $(ECHO_N) guile-tools \
+ | $(SED) -e '$(program_transform_name)'`$(EXEEXT)" ; \
+ cd $(DESTDIR)$(bindir) && rm -f "$$guile_tools" && \
+ $(LN_S) "$$guild" "$$guile_tools"
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = guile-2.0.pc