2004-04-14 17:39:55 +00:00
#
2015-07-20 16:46:21 +02:00
# Copyright (C) 2004-2015 Red Hat, Inc. All rights reserved.
2004-04-14 17:39:55 +00:00
#
2007-09-21 10:16:45 +00:00
# This file is part of LVM2.
2004-04-14 17:39:55 +00:00
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions
# of the GNU General Public License v.2.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software Foundation,
2016-01-21 11:49:46 +01:00
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
2004-04-14 17:39:55 +00:00
srcdir = @srcdir@
top_srcdir = @top_srcdir@
2009-10-02 19:10:31 +00:00
top_builddir = @top_builddir@
2004-04-14 17:39:55 +00:00
2010-05-20 11:45:56 +00:00
CONFSRC = example.conf
2004-04-14 17:39:55 +00:00
CONFDEST = lvm.conf
2015-02-23 22:19:08 +00:00
CONFLOCAL = lvmlocal.conf
2004-04-14 17:39:55 +00:00
2014-05-21 12:32:12 +02:00
PROFILE_TEMPLATES = command_profile_template.profile metadata_profile_template.profile
2015-07-20 16:46:21 +02:00
PROFILES = $( PROFILE_TEMPLATES) \
$( srcdir) /cache-mq.profile \
$( srcdir) /cache-smq.profile \
$( srcdir) /thin-generic.profile \
2016-08-04 18:16:21 +02:00
$( srcdir) /thin-performance.profile \
$( srcdir) /lvmdbusd.profile
2013-06-28 14:08:04 +02:00
2010-03-04 09:51:37 +00:00
i n c l u d e $( top_builddir ) / m a k e . t m p l
2004-04-14 17:39:55 +00:00
2015-02-23 22:19:08 +00:00
.PHONY : install_conf install_localconf install_profiles
2015-04-15 16:15:30 -05:00
generate :
2017-08-05 16:18:36 +01:00
LD_LIBRARY_PATH = $( top_builddir) /libdm:$( LD_LIBRARY_PATH) $( top_builddir) /tools/lvm dumpconfig --type default --unconfigured --withgeneralpreamble --withcomments --ignorelocal --withspaces > example.conf.in
LD_LIBRARY_PATH = $( top_builddir) /libdm:$( LD_LIBRARY_PATH) $( top_builddir) /tools/lvm dumpconfig --type default --unconfigured --withlocalpreamble --withcomments --withspaces local > lvmlocal.conf.in
2015-04-15 16:15:30 -05:00
2013-06-28 14:08:04 +02:00
install_conf : $( CONFSRC )
2004-04-14 17:39:55 +00:00
@if [ ! -e $( confdir) /$( CONFDEST) ] ; then \
2010-04-09 21:42:48 +00:00
echo " $( INSTALL_WDATA) -D $< $( confdir) / $( CONFDEST) " ; \
$( INSTALL_WDATA) -D $< $( confdir) /$( CONFDEST) ; \
2004-04-14 17:39:55 +00:00
fi
2015-02-23 22:19:08 +00:00
install_localconf : $( CONFLOCAL )
@if [ ! -e $( confdir) /$( CONFLOCAL) ] ; then \
echo " $( INSTALL_WDATA) -D $< $( confdir) / $( CONFLOCAL) " ; \
$( INSTALL_WDATA) -D $< $( confdir) /$( CONFLOCAL) ; \
fi
2013-06-28 14:08:04 +02:00
install_profiles : $( PROFILES )
2017-04-13 02:17:27 +01:00
$( INSTALL_DIR) $( profiledir)
$( INSTALL_DATA) $( PROFILES) $( profiledir) /
2013-06-28 14:08:04 +02:00
2015-02-23 22:19:08 +00:00
install_lvm2 : install_conf install_localconf install_profiles
2013-06-28 14:08:04 +02:00
2009-05-11 10:28:45 +00:00
install : install_lvm 2
2010-08-03 13:00:45 +00:00
2015-09-11 21:30:05 +02:00
DISTCLEAN_TARGETS += $( CONFSRC) $( CONFLOCAL) $( PROFILE_TEMPLATES)