source: trunk/build_support/Makefile.am @ 2605

Last change on this file since 2605 was 2605, checked in by Peter, 11 years ago

remove move-if-change and use the one generated at autoconf time

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.0 KB
Line 
1## Process this file with automake to produce Makefile.in
2##
3## $Id: Makefile.am 2605 2011-10-31 04:54:17Z peter $
4
5# Copyright (C) 2008, 2009, 2010, 2011 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
22noinst_SCRIPTS = tag_and_release.sh
23bin_SCRIPTS=for_installation/yat-config
24
25pkgconfigexecdir = $(libdir)/pkgconfig
26pkgconfigexec_DATA= yat.pc
27
28CLEANFILES = yat.pc yat-config for_installation/yat-config
29
30EXTRA_DIST =  yat-config.in yat.pc.in
31
32edit = $(SED) \
33  -e 's|@SHELL[@]|$(SHELL)|g' \
34  -e 's|@prefix[@]|$(prefix)|g' \
35  -e 's|@exec_prefix[@]|$(exec_prefix)|g' \
36  -e 's|@bindir[@]|$(bindir)|g' \
37  -e 's|@libdir[@]|$(libdir)|g' \
38  -e 's|@includedir[@]|$(includedir)|g' \
39  -e 's|@CXX[@]|$(CXX)|g' \
40  -e 's|@CXXCPP[@]|$(CXXCPP)|g' \
41  -e 's|@CPPFLAGS[@]|$(CPPFLAGS)|g' \
42  -e 's|@CXXFLAGS[@]|$(CXXFLAGS)|g' \
43  -e 's|@LDFLAGS[@]|$(LDFLAGS)|g' \
44  -e 's|@LIBS[@]|$(LIBS)|g' \
45  -e 's|@YAT_CBLAS_LIB[@]|$(YAT_CBLAS_LIB)|g' \
46  -e 's|@YAT_CPPFLAGS[@]|$(YAT_CPPFLAGS)|g' \
47  -e 's|@YAT_CXXFLAGS[@]|$(YAT_CXXFLAGS)|g' \
48  -e 's|@YAT_LDFLAGS[@]|$(YAT_LDFLAGS)|g' \
49  -e 's|@YAT_PRIMARY_LIBS[@]|$(YAT_PRIMARY_LIBS)|g' \
50  -e 's|@LIBM[@]|$(LIBM)|g' \
51  -e 's|@PACKAGE[@]|$(PACKAGE)|g' \
52  -e 's|@PACKAGE_BUGREPORT[@]|$(PACKAGE_BUGREPORT)|g' \
53  -e 's|@PACKAGE_URL[@]|$(PACKAGE_URL)|g' \
54  -e 's|@VERSION[@]|$(VERSION)|g' \
55  -e 's|@YAT_MAJOR_VERSION[@]|$(YAT_MAJOR_VERSION)|g' \
56  -e 's|@YAT_MINOR_VERSION[@]|$(YAT_MINOR_VERSION)|g' \
57  -e 's|@YAT_PATCH_VERSION[@]|$(YAT_PATCH_VERSION)|g' \
58  -e 's|@YAT_DEV_BUILD[@]|$(YAT_DEV_BUILD)|g' \
59  -e 's|@gsl_version[@]|$(gsl_version)|g' \
60  -e 's|@abs_top_srcdir[@]|$(abs_top_srcdir)|g' \
61  -e 's|@abs_top_builddir[@]|$(abs_top_builddir)|g' \
62  -e 's|@boost_version[@]|$(boost_version)|g'
63
64yat-config: Makefile $(srcdir)/yat-config.in
65  @rm -f $@ $@.tmp
66  @echo "#! $(SHELL)" > $@.tmp
67  @echo "# $@ generated by make from yat-config.in" >> $@.tmp
68  @$(edit) '$(srcdir)/$@.in' >>$@.tmp
69  @chmod +x $@.tmp
70  @chmod a-w $@.tmp
71  @mv $@.tmp $@
72  @echo creating $@
73
74for_installation/yat-config: yat-config
75  @rm -f $@ $@-t \
76  && $(MKDIR_P) for_installation \
77  && sed 's|installed=no|installed=yes|g' < yat-config > $@-t \
78  && mv $@-t $@ && echo creating $@
79
80yat.pc: $(srcdir)/yat.pc.in gen_yat_pc.sh Makefile
81  @rm -f $@ $@-t \
82  && $(SHELL) gen_yat_pc.sh --prefix="$(prefix)" \
83  --exec-prefix="$(exec_prefix)" \
84  --libdir="$(libdir)" --includedir="$(includedir)" \
85  --input="$(srcdir)/yat.pc.in" > $@-t && mv $@-t $@ && echo creating $@
Note: See TracBrowser for help on using the repository browser.