source: branches/0.10-stable/build_support/Makefile.am @ 2957

Last change on this file since 2957 was 2957, checked in by Peter, 10 years ago

update copyright years

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