## Process this file with automake to produce Makefile.in ## ## $Id: Makefile.am 1505 2008-09-16 17:03:27Z peter $ # Copyright (C) 2008 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=yat-config pkgconfigdir = $(libdir)/pkgconfig pkgconfig_DATA= yat.pc aclocaldir = $(datadir)/aclocal aclocal_DATA = yat.m4 CLEANFILES = yat.pc yat-config EXTRA_DIST = yat.m4 yat-config.in 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|@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|@EXTRA_CPPFLAGS[@]|$(EXTRA_CPPFLAGS)|g' \ -e 's|@EXTRA_CXXFLAGS[@]|$(EXTRA_CXXFLAGS)|g' \ -e 's|@EXTRA_LDFLAGS[@]|$(EXTRA_LDFLAGS)|g' \ -e 's|@PACKAGE[@]|$(PACKAGE)|g' \ -e 's|@PACKAGE_BUGREPORT[@]|$(PACKAGE_BUGREPORT)|g' \ -e 's|@ECHO[@]|$(ECHO)|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|@YAT_LIBNAME[@]|$(YAT_LIBNAME)|g' \ -e 's|@gsl_version[@]|$(gsl_version)|g' \ -e 's|@boost_version[@]|$(boost_version)|g' yat-config: Makefile yat-config.in rm -f $@ $@.tmp @$(edit) '$(srcdir)/$@.in' >$@.tmp chmod +x $@.tmp chmod a-w $@.tmp mv $@.tmp $@ yat.pc: Makefile yat.pc.in rm -f $@ $@.tmp @$(edit) '$(srcdir)/$@.in' >$@.tmp chmod a-w $@.tmp mv $@.tmp $@