## $Id: Makefile.am 4019 2020-11-06 01:55:37Z peter $ # Copyright (C) 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2016, 2017, 2019, 2020 Peter Johansson # # This file is part of the yat library, http://dev.thep.lu.se/yat # # The yat library is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License as # published by the Free Software Foundation; either version 3 of the # License, or (at your option) any later version. # # The yat library is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with yat. If not, see . bin_SCRIPTS = build_support/for_installation/yat-config pkgconfigexecdir = $(libdir)/pkgconfig pkgconfigexec_DATA= build_support/yat.pc CLEANFILES += build_support/yat.pc build_support/yat-config CLEANFILES += build_support/for_installation/yat-config EXTRA_DIST += build_support/yat-config.in build_support/yat.pc.in edit = $(SED) \ -e 's|@SHELL[@]|$(SHELL)|g' \ -e 's|@prefix[@]|$(prefix)|g' \ -e 's|@exec_prefix[@]|$(exec_prefix)|g' \ -e 's|@bindir[@]|$(bindir)|g' \ -e 's|@libdir[@]|$(libdir)|g' \ -e 's|@includedir[@]|$(includedir)|g' \ -e 's|@host_os[@]|$(host_os)|g' \ -e 's|@GXX[@]|$(GXX)|g' \ -e 's|@CXX[@]|$(CXX)|g' \ -e 's|@CXXCPP[@]|$(CXXCPP)|g' \ -e 's|@CPPFLAGS[@]|$(CPPFLAGS)|g' \ -e 's|@CXXFLAGS[@]|$(CXXFLAGS)|g' \ -e 's|@LDFLAGS[@]|$(LDFLAGS)|g' \ -e 's|@LIBS[@]|$(LIBS)|g' \ -e 's|@YAT_CBLAS_LIB[@]|$(YAT_CBLAS_LIB)|g' \ -e 's|@YAT_CPPFLAGS[@]|$(YAT_CPPFLAGS)|g' \ -e 's|@YAT_CXXFLAGS[@]|$(YAT_CXXFLAGS)|g' \ -e 's|@YAT_LDFLAGS[@]|$(YAT_LDFLAGS)|g' \ -e 's|@YAT_PC_LIBS[@]|$(YAT_PC_LIBS)|g' \ -e 's|@YAT_PC_REQUIRES[@]|$(YAT_PC_REQUIRES)|g' \ -e 's|@YAT_PRIMARY_LIBS[@]|$(YAT_PRIMARY_LIBS)|g' \ -e 's|@YAT_STATIC_LIBS[@]|$(YAT_STATIC_LIBS)|g' \ -e 's|@LIBM[@]|$(LIBM)|g' \ -e 's|@YAT_CONFIG_CPPFLAGS[@]|$(YAT_CONFIG_CPPFLAGS)|g' \ -e 's|@YAT_CONFIG_CXXFLAGS[@]|$(YAT_CONFIG_CXXFLAGS)|g' \ -e 's|@YAT_CONFIG_LDFLAGS[@]|$(YAT_CONFIG_LDFLAGS)|g' \ -e 's|@PACKAGE[@]|$(PACKAGE)|g' \ -e 's|@PACKAGE_VERSION[@]|$(PACKAGE_VERSION)|g' \ -e 's|@PACKAGE_BUGREPORT[@]|$(PACKAGE_BUGREPORT)|g' \ -e 's|@PACKAGE_URL[@]|$(PACKAGE_URL)|g' \ -e 's|@VERSION[@]|$(VERSION)|g' \ -e 's|@YAT_MAJOR_VERSION[@]|$(YAT_MAJOR_VERSION)|g' \ -e 's|@YAT_MINOR_VERSION[@]|$(YAT_MINOR_VERSION)|g' \ -e 's|@YAT_PATCH_VERSION[@]|$(YAT_PATCH_VERSION)|g' \ -e 's|@YAT_DEV_BUILD[@]|$(YAT_DEV_BUILD)|g' \ -e 's|@canonical_abs_top_srcdir[@]|$(canonical_abs_top_srcdir)|g' \ -e 's|@abs_top_srcdir[@]|$(abs_top_srcdir)|g' \ -e 's|@abs_top_builddir[@]|$(abs_top_builddir)|g' build_support/yat-config: Makefile $(srcdir)/build_support/yat-config.in @$(AM_V_GEN)rm -f $@ $@.tmp \ && echo "#! $(SHELL)" > $@.tmp \ && echo "# yat-config generated by make from yat-config.in" >> $@.tmp \ && $(edit) '$(srcdir)/$@.in' >>$@.tmp \ && chmod +x $@.tmp \ && chmod a-w $@.tmp \ && mv $@.tmp $@ build_support/for_installation/yat-config: build_support/yat-config $(AM_V_GEN)rm -f $@ $@-t \ && $(MKDIR_P) build_support/for_installation \ && sed 's|installed=no|installed=yes|g' < build_support/yat-config > $@-t \ && mv $@-t $@ build_support/yat.pc: $(srcdir)/build_support/yat.pc.in build_support/gen_yat_pc.sh Makefile $(AM_V_GEN)rm -f $@ $@-t \ && cd build_support \ && $(SHELL) gen_yat_pc.sh --prefix="$(prefix)" \ --exec-prefix="$(exec_prefix)" \ --libdir="$(libdir)" --includedir="$(includedir)" \ --input="$(abs_srcdir)/build_support/yat.pc.in" > yat.pc-t \ && mv yat.pc-t yat.pc