source: trunk/build_support/Makefile.am @ 1504

Last change on this file since 1504 was 1504, checked in by Peter, 13 years ago

fixes #441

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.9 KB
Line 
1## Process this file with automake to produce Makefile.in
2##
3## $Id: Makefile.am 1504 2008-09-16 16:32:24Z peter $
4
5# Copyright (C) 2008 Peter Johansson
6#
7# This file is part of the yat library, http://dev.thep.lu.se/yat
8#
9# The yat library is free software; you can redistribute it and/or
10# modify it under the terms of the GNU General Public License as
11# published by the Free Software Foundation; either version 3 of the
12# License, or (at your option) any later version.
13#
14# The yat library is distributed in the hope that it will be useful,
15# but WITHOUT ANY WARRANTY; without even the implied warranty of
16# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17# General Public License for more details.
18#
19# You should have received a copy of the GNU General Public License
20# along with yat. If not, see <http://www.gnu.org/licenses/>.
21
22bin_SCRIPTS=yat-config
23
24pkgconfigdir = $(libdir)/pkgconfig
25pkgconfig_DATA= yat.pc
26
27aclocaldir = $(datadir)/aclocal
28aclocal_DATA = yat.m4
29
30CLEANFILES = yat.pc yat-config
31
32EXTRA_DIST = yat.m4 yat-config.in yat.pc.in
33
34
35
36edit = sed \
37  -e 's|@prefix[@]|$(prefix)|g' \
38  -e 's|@exec_prefix[@]|$(exec_prefix)|g' \
39  -e 's|@bindir[@]|$(bindir)|g' \
40  -e 's|@libdir[@]|$(libdir)|g' \
41  -e 's|@includedir[@]|$(includedir)|g' \
42  -e 's|@CXX[@]|$(CXX)|g' \
43  -e 's|@CXXCPP[@]|$(CXXCPP)|g' \
44  -e 's|@CPPFLAGS[@]|$(CPPFLAGS)|g' \
45  -e 's|@CXXFLAGS[@]|$(CXXFLAGS)|g' \
46  -e 's|@LDFLAGS[@]|$(LDFLAGS)|g' \
47  -e 's|@LIBS[@]|$(LIBS)|g' \
48  -e 's|@EXTRA_CPPFLAGS[@]|$(EXTRA_CPPFLAGS)|g' \
49  -e 's|@EXTRA_CXXFLAGS[@]|$(EXTRA_CXXFLAGS)|g' \
50  -e 's|@EXTRA_LDFLAGS[@]|$(EXTRA_LDFLAGS)|g' \
51  -e 's|@PACKAGE[@]|$(PACKAGE)|g' \
52  -e 's|@PACKAGE_BUGREPORT[@]|$(PACKAGE_BUGREPORT)|g' \
53  -e 's|@YAT_LIBNAME[@]|$(YAT_LIBNAME)|g'
54
55yat-config: Makefile yat-config.in
56  rm -f $@ $@.tmp
57  @$(edit) '$(srcdir)/$@.in' >$@.tmp
58  chmod +x $@.tmp
59  chmod a-w $@.tmp
60  mv $@.tmp $@
61
62yat.pc: Makefile yat.pc.in
63  rm -f $@ $@.tmp
64  @$(edit) '$(srcdir)/$@.in' >$@.tmp
65  chmod a-w $@.tmp
66  mv $@.tmp $@
Note: See TracBrowser for help on using the repository browser.