Have `guile-config' close over `pkg-config' and $(pkgconfigdir).
[bpt/guile.git] / meta / Makefile.am
CommitLineData
2764bd99
JB
1## Process this file with Automake to create Makefile.in
2## Jim Blandy <jimb@red-bean.com> --- September 1997
3##
c1a15f3d 4## Copyright (C) 1998, 1999, 2001, 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
2764bd99
JB
5##
6## This file is part of GUILE.
7##
53befeb7
NJ
8## GUILE is free software; you can redistribute it and/or modify it
9## under the terms of the GNU Lesser General Public License as
10## published by the Free Software Foundation; either version 3, or
2764bd99
JB
11## (at your option) any later version.
12##
13## GUILE is distributed in the hope that it will be useful, but
14## WITHOUT ANY WARRANTY; without even the implied warranty of
15## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
53befeb7 16## GNU Lesser General Public License for more details.
2764bd99 17##
53befeb7
NJ
18## You should have received a copy of the GNU Lesser General Public
19## License along with GUILE; see the file COPYING.LESSER. If not,
20## write to the Free Software Foundation, Inc., 51 Franklin Street,
21## Fifth Floor, Boston, MA 02110-1301 USA
9a56cb24 22
5a70cf0a 23bin_SCRIPTS = guile-config guile-tools
54b38caf
LC
24EXTRA_DIST= $(bin_SCRIPTS) \
25 guile.m4 ChangeLog-2008 \
26 guile-2.0.pc.in guile-2.0-uninstalled.pc.in \
297273e4 27 guile-tools.in guile-config.in
0b6d8fdc
AW
28
29pkgconfigdir = $(libdir)/pkgconfig
c1a15f3d 30pkgconfig_DATA = guile-2.0.pc
9a56cb24 31
2b9fe19f
JB
32## FIXME: in the future there will be direct automake support for
33## doing this. When that happens, switch over.
34aclocaldir = $(datadir)/aclocal
35aclocal_DATA = guile.m4
297273e4
LC
36
37guile-config: guile-config.in
38 guile="@bindir@/`echo guile | $(SED) -e '$(program_transform_name)'`" ; \
39 cat guile-config.in \
40 | $(SED) -e "s,@pkgconfigdir@,$(pkgconfigdir),g ; \
41 s,@""PKG_CONFIG@,$(PKG_CONFIG),g ; \
42 s,@installed_guile@,$$guile,g" \
43 > guile-config.out
44 mv guile-config.out guile-config
45 chmod +x guile-config