summaryrefslogtreecommitdiff
path: root/meta/Makefile.am
blob: 283f3f1f2a36d72bc1ea0e0b868886aa12d7168f (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
## 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,
##        2012, 2013, 2014 Free Software Foundation, Inc.
##
##   This file is part of GUILE.
##   
##   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
##   (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
##   GNU Lesser General Public License for more details.
##   
##   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

bin_SCRIPTS = guile-config guild
EXTRA_DIST= \
  guile.m4 ChangeLog-2008			\
  guile-2.2.pc.in guile-2.2-uninstalled.pc.in	\
  guild.in guile-config.in

# What we now call `guild' used to be known as `guile-tools'.
install-exec-hook:
	guild="`echo $(ECHO_N) guild				\
	   | $(SED) -e '$(program_transform_name)'`" ;		\
	guile_tools="`echo $(ECHO_N) guile-tools		\
	   | $(SED) -e '$(program_transform_name)'`" ;		\
	cd $(DESTDIR)$(bindir) && rm -f "$$guile_tools" &&	\
	$(LN_S) "$$guild" "$$guile_tools"

pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = guile-2.2.pc

## 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

guile-config: $(srcdir)/guile-config.in $(top_builddir)/config.status
	guile="@bindir@/`echo guile | $(SED) -e '$(program_transform_name)'`" ;	\
	$(SED) -e "s,[@]pkgconfigdir[@],$(pkgconfigdir),g"			\
	       -e "s,[@]PKG_CONFIG[@],$(PKG_CONFIG),g"				\
	       -e "s,[@]installed_guile[@],$$guile,g"				\
	  < "$(srcdir)/guile-config.in"						\
	  > "$@.out"
	chmod +x "$@.out"
	mv "$@.out" "$@"

guild: $(srcdir)/guild.in $(top_builddir)/config.status
	guile="@bindir@/`echo guile | $(SED) -e '$(program_transform_name)'`" ;	\
	$(SED) -e "s,[@]installed_guile[@],$$guile,g"				\
	       -e "s,[@]PACKAGE_NAME[@],$(PACKAGE_NAME),g"			\
	       -e "s,[@]PACKAGE_BUGREPORT[@],$(PACKAGE_BUGREPORT),g"		\
	  < "$(srcdir)/guild.in"						\
	  > "$@.out"
	chmod +x "$@.out"
	mv "$@.out" "$@"

CLEANFILES = guile-config guild