1504 |
16 Sep 08 |
peter |
## $Id$ |
1504 |
16 Sep 08 |
peter |
2 |
|
4359 |
23 Aug 23 |
peter |
# Copyright (C) 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2016, 2017, 2020 Peter Johansson |
1504 |
16 Sep 08 |
peter |
4 |
# |
1504 |
16 Sep 08 |
peter |
# This file is part of the yat library, http://dev.thep.lu.se/yat |
1504 |
16 Sep 08 |
peter |
6 |
# |
1504 |
16 Sep 08 |
peter |
# The yat library is free software; you can redistribute it and/or |
1504 |
16 Sep 08 |
peter |
# modify it under the terms of the GNU General Public License as |
1504 |
16 Sep 08 |
peter |
# published by the Free Software Foundation; either version 3 of the |
1504 |
16 Sep 08 |
peter |
# License, or (at your option) any later version. |
1504 |
16 Sep 08 |
peter |
11 |
# |
1504 |
16 Sep 08 |
peter |
# The yat library is distributed in the hope that it will be useful, |
1504 |
16 Sep 08 |
peter |
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
1504 |
16 Sep 08 |
peter |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
1504 |
16 Sep 08 |
peter |
# General Public License for more details. |
1504 |
16 Sep 08 |
peter |
16 |
# |
1504 |
16 Sep 08 |
peter |
# You should have received a copy of the GNU General Public License |
1504 |
16 Sep 08 |
peter |
# along with yat. If not, see <http://www.gnu.org/licenses/>. |
1504 |
16 Sep 08 |
peter |
19 |
|
2739 |
07 Jun 12 |
peter |
20 |
bin_SCRIPTS = build_support/for_installation/yat-config |
1504 |
16 Sep 08 |
peter |
21 |
|
2328 |
26 Sep 10 |
peter |
22 |
pkgconfigexecdir = $(libdir)/pkgconfig |
2739 |
07 Jun 12 |
peter |
23 |
pkgconfigexec_DATA= build_support/yat.pc |
1504 |
16 Sep 08 |
peter |
24 |
|
2739 |
07 Jun 12 |
peter |
25 |
CLEANFILES += build_support/yat.pc build_support/yat-config |
2739 |
07 Jun 12 |
peter |
26 |
CLEANFILES += build_support/for_installation/yat-config |
1504 |
16 Sep 08 |
peter |
27 |
|
2739 |
07 Jun 12 |
peter |
28 |
EXTRA_DIST += build_support/yat-config.in build_support/yat.pc.in |
1504 |
16 Sep 08 |
peter |
29 |
|
1609 |
03 Nov 08 |
peter |
30 |
edit = $(SED) \ |
1505 |
16 Sep 08 |
peter |
31 |
-e 's|@SHELL[@]|$(SHELL)|g' \ |
1504 |
16 Sep 08 |
peter |
32 |
-e 's|@prefix[@]|$(prefix)|g' \ |
1504 |
16 Sep 08 |
peter |
33 |
-e 's|@exec_prefix[@]|$(exec_prefix)|g' \ |
1504 |
16 Sep 08 |
peter |
34 |
-e 's|@bindir[@]|$(bindir)|g' \ |
1504 |
16 Sep 08 |
peter |
35 |
-e 's|@libdir[@]|$(libdir)|g' \ |
1504 |
16 Sep 08 |
peter |
36 |
-e 's|@includedir[@]|$(includedir)|g' \ |
3716 |
10 Nov 17 |
peter |
37 |
-e 's|@host_os[@]|$(host_os)|g' \ |
3716 |
10 Nov 17 |
peter |
38 |
-e 's|@GXX[@]|$(GXX)|g' \ |
1504 |
16 Sep 08 |
peter |
39 |
-e 's|@CXX[@]|$(CXX)|g' \ |
1504 |
16 Sep 08 |
peter |
40 |
-e 's|@CXXCPP[@]|$(CXXCPP)|g' \ |
1504 |
16 Sep 08 |
peter |
41 |
-e 's|@CPPFLAGS[@]|$(CPPFLAGS)|g' \ |
1504 |
16 Sep 08 |
peter |
42 |
-e 's|@CXXFLAGS[@]|$(CXXFLAGS)|g' \ |
1504 |
16 Sep 08 |
peter |
43 |
-e 's|@LDFLAGS[@]|$(LDFLAGS)|g' \ |
1504 |
16 Sep 08 |
peter |
44 |
-e 's|@LIBS[@]|$(LIBS)|g' \ |
1892 |
13 Apr 09 |
peter |
45 |
-e 's|@YAT_CBLAS_LIB[@]|$(YAT_CBLAS_LIB)|g' \ |
1892 |
13 Apr 09 |
peter |
46 |
-e 's|@YAT_CPPFLAGS[@]|$(YAT_CPPFLAGS)|g' \ |
1892 |
13 Apr 09 |
peter |
47 |
-e 's|@YAT_CXXFLAGS[@]|$(YAT_CXXFLAGS)|g' \ |
1892 |
13 Apr 09 |
peter |
48 |
-e 's|@YAT_LDFLAGS[@]|$(YAT_LDFLAGS)|g' \ |
3111 |
10 Nov 13 |
peter |
49 |
-e 's|@YAT_PC_LIBS[@]|$(YAT_PC_LIBS)|g' \ |
3365 |
01 Dec 14 |
peter |
50 |
-e 's|@YAT_PC_REQUIRES[@]|$(YAT_PC_REQUIRES)|g' \ |
1897 |
15 Apr 09 |
peter |
51 |
-e 's|@YAT_PRIMARY_LIBS[@]|$(YAT_PRIMARY_LIBS)|g' \ |
3111 |
10 Nov 13 |
peter |
52 |
-e 's|@YAT_STATIC_LIBS[@]|$(YAT_STATIC_LIBS)|g' \ |
1897 |
15 Apr 09 |
peter |
53 |
-e 's|@LIBM[@]|$(LIBM)|g' \ |
3715 |
10 Nov 17 |
peter |
54 |
-e 's|@YAT_CONFIG_CPPFLAGS[@]|$(YAT_CONFIG_CPPFLAGS)|g' \ |
3715 |
10 Nov 17 |
peter |
55 |
-e 's|@YAT_CONFIG_CXXFLAGS[@]|$(YAT_CONFIG_CXXFLAGS)|g' \ |
3715 |
10 Nov 17 |
peter |
56 |
-e 's|@YAT_CONFIG_LDFLAGS[@]|$(YAT_CONFIG_LDFLAGS)|g' \ |
1504 |
16 Sep 08 |
peter |
57 |
-e 's|@PACKAGE[@]|$(PACKAGE)|g' \ |
3966 |
11 Aug 20 |
peter |
58 |
-e 's|@PACKAGE_VERSION[@]|$(PACKAGE_VERSION)|g' \ |
1504 |
16 Sep 08 |
peter |
59 |
-e 's|@PACKAGE_BUGREPORT[@]|$(PACKAGE_BUGREPORT)|g' \ |
2144 |
15 Jan 10 |
peter |
60 |
-e 's|@PACKAGE_URL[@]|$(PACKAGE_URL)|g' \ |
1505 |
16 Sep 08 |
peter |
61 |
-e 's|@VERSION[@]|$(VERSION)|g' \ |
1505 |
16 Sep 08 |
peter |
62 |
-e 's|@YAT_MAJOR_VERSION[@]|$(YAT_MAJOR_VERSION)|g' \ |
1505 |
16 Sep 08 |
peter |
63 |
-e 's|@YAT_MINOR_VERSION[@]|$(YAT_MINOR_VERSION)|g' \ |
1505 |
16 Sep 08 |
peter |
64 |
-e 's|@YAT_PATCH_VERSION[@]|$(YAT_PATCH_VERSION)|g' \ |
1505 |
16 Sep 08 |
peter |
65 |
-e 's|@YAT_DEV_BUILD[@]|$(YAT_DEV_BUILD)|g' \ |
3966 |
11 Aug 20 |
peter |
66 |
-e 's|@canonical_abs_top_srcdir[@]|$(canonical_abs_top_srcdir)|g' \ |
1697 |
06 Jan 09 |
peter |
67 |
-e 's|@abs_top_srcdir[@]|$(abs_top_srcdir)|g' \ |
3811 |
08 Jul 19 |
peter |
68 |
-e 's|@abs_top_builddir[@]|$(abs_top_builddir)|g' |
1504 |
16 Sep 08 |
peter |
69 |
|
2739 |
07 Jun 12 |
peter |
70 |
build_support/yat-config: Makefile $(srcdir)/build_support/yat-config.in |
2744 |
08 Jun 12 |
peter |
71 |
@$(AM_V_GEN)rm -f $@ $@.tmp \ |
2744 |
08 Jun 12 |
peter |
72 |
&& echo "#! $(SHELL)" > $@.tmp \ |
3075 |
04 Sep 13 |
peter |
73 |
&& echo "# yat-config generated by make from yat-config.in" >> $@.tmp \ |
2744 |
08 Jun 12 |
peter |
74 |
&& $(edit) '$(srcdir)/$@.in' >>$@.tmp \ |
2744 |
08 Jun 12 |
peter |
75 |
&& chmod +x $@.tmp \ |
2744 |
08 Jun 12 |
peter |
76 |
&& chmod a-w $@.tmp \ |
2744 |
08 Jun 12 |
peter |
77 |
&& mv $@.tmp $@ |
1504 |
16 Sep 08 |
peter |
78 |
|
2739 |
07 Jun 12 |
peter |
79 |
build_support/for_installation/yat-config: build_support/yat-config |
2744 |
08 Jun 12 |
peter |
80 |
$(AM_V_GEN)rm -f $@ $@-t \ |
2739 |
07 Jun 12 |
peter |
81 |
&& $(MKDIR_P) build_support/for_installation \ |
2739 |
07 Jun 12 |
peter |
82 |
&& sed 's|installed=no|installed=yes|g' < build_support/yat-config > $@-t \ |
2744 |
08 Jun 12 |
peter |
83 |
&& mv $@-t $@ |
2420 |
30 Jan 11 |
peter |
84 |
|
2739 |
07 Jun 12 |
peter |
85 |
build_support/yat.pc: $(srcdir)/build_support/yat.pc.in build_support/gen_yat_pc.sh Makefile |
2744 |
08 Jun 12 |
peter |
86 |
$(AM_V_GEN)rm -f $@ $@-t \ |
2739 |
07 Jun 12 |
peter |
87 |
&& cd build_support \ |
2422 |
01 Feb 11 |
peter |
88 |
&& $(SHELL) gen_yat_pc.sh --prefix="$(prefix)" \ |
2422 |
01 Feb 11 |
peter |
89 |
--exec-prefix="$(exec_prefix)" \ |
2418 |
30 Jan 11 |
peter |
90 |
--libdir="$(libdir)" --includedir="$(includedir)" \ |
4019 |
06 Nov 20 |
peter |
91 |
--input="$(abs_srcdir)/build_support/yat.pc.in" > yat.pc-t \ |
2744 |
08 Jun 12 |
peter |
92 |
&& mv yat.pc-t yat.pc |