2001-09-21 16:37:43 +04:00
#
2004-03-30 23:35:44 +04:00
# Copyright (C) 2001-2004 Sistina Software, Inc. All rights reserved.
2011-09-23 13:48:21 +04:00
# Copyright (C) 2004-2011 Red Hat, Inc. All rights reserved.
2001-09-21 16:37:43 +04:00
#
2007-09-21 14:16:45 +04:00
# This file is part of LVM2.
2001-09-21 16:37:43 +04:00
#
2004-03-30 23:35:44 +04: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.
2001-09-21 16:37:43 +04:00
#
2004-03-30 23:35:44 +04:00
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
2001-09-21 16:37:43 +04:00
srcdir = @srcdir@
top_srcdir = @top_srcdir@
2009-10-02 23:10:31 +04:00
top_builddir = @top_builddir@
2001-09-21 16:37:43 +04:00
2008-01-09 17:17:58 +03:00
i f e q ( "@FSADM@" , "yes" )
FSADMMAN = fsadm.8
e l s e
FSADMMAN =
e n d i f
2012-10-12 16:37:57 +04:00
i f e q ( "@BLKDEACTIVATE@" , "yes" )
BLKDEACTIVATEMAN = blkdeactivate.8
e l s e
BLKDEACTIVATEMAN =
e n d i f
2010-06-17 16:14:43 +04:00
i f e q ( "@DMEVENTD@" , "yes" )
DMEVENTDMAN = dmeventd.8
e l s e
DMEVENTDMAN =
e n d i f
2012-04-15 19:40:48 +04:00
i f e q ( "@BUILD_LVMETAD@" , "yes" )
LVMETAD = lvmetad.8
e l s e
LVMETAD =
e n d i f
2015-05-09 02:59:18 +03:00
i f e q ( "@BUILD_LVMPOLLD@" , "yes" )
LVMPOLLD = lvmpolld.8
e l s e
LVMPOLLD =
e n d i f
2015-03-05 23:00:44 +03:00
i f e q ( "@BUILD_LVMLOCKD@" , "yes" )
LVMLOCKD = lvmlockd.8
e l s e
LVMLOCKD =
e n d i f
2001-12-31 20:20:22 +03:00
MAN5 = lvm.conf.5
2014-10-24 21:29:04 +04:00
MAN7 = lvmsystemid.7
2015-05-15 21:16:51 +03:00
MAN8 = lvm-config.8 lvm-dumpconfig.8 lvm-lvpoll.8 \
2015-04-28 19:00:37 +03:00
lvchange.8 lvmconfig.8 lvconvert.8 lvcreate.8 lvdisplay.8 lvextend.8 \
lvm.8 lvmchange.8 lvmconf.8 lvmdiskscan.8 lvmdump.8 lvmsadc.8 lvmsar.8 \
2006-11-20 23:03:26 +03:00
lvreduce.8 lvremove.8 lvrename.8 lvresize.8 lvs.8 \
2007-03-31 01:00:26 +04:00
lvscan.8 pvchange.8 pvck.8 pvcreate.8 pvdisplay.8 pvmove.8 pvremove.8 \
2005-10-31 05:37:29 +03:00
pvresize.8 pvs.8 pvscan.8 vgcfgbackup.8 vgcfgrestore.8 vgchange.8 \
vgck.8 vgcreate.8 vgconvert.8 vgdisplay.8 vgexport.8 vgextend.8 \
2009-05-14 20:46:12 +04:00
vgimport.8 vgimportclone.8 vgmerge.8 vgmknodes.8 vgreduce.8 vgremove.8 \
2015-03-05 23:00:44 +03:00
vgrename.8 vgs.8 vgscan.8 vgsplit.8 $( FSADMMAN) $( LVMETAD) $( LVMPOLLD) \
$( LVMLOCKD)
2010-01-19 05:04:33 +03:00
i f n e q ( "@CLVMD@" , "none" )
MAN8CLUSTER = clvmd.8
e l s e
MAN8CLUSTER =
e n d i f
2014-04-04 04:14:25 +04:00
2010-01-19 05:04:33 +03:00
i f e q ( "@BUILD_CMIRRORD@" , "yes" )
MAN8CLUSTER += cmirrord.8
e n d i f
2014-05-15 14:06:18 +04:00
i f n e q ( "@CACHE@" , "none" )
MAN7 += lvmcache.7
e n d i f
2014-04-04 04:14:25 +04:00
i f n e q ( "@THIN@" , "none" )
2014-05-15 14:06:18 +04:00
MAN7 += lvmthin.7
2014-04-04 04:14:25 +04:00
e n d i f
2015-08-05 12:40:00 +03:00
MAN8DM = dmsetup.8 dmstats.8 $( DMEVENTDMAN) $( BLKDEACTIVATEMAN)
2010-03-04 12:56:01 +03:00
MAN5DIR = $( mandir) /man5
2014-04-04 04:14:25 +04:00
MAN7DIR = $( mandir) /man7
2010-03-04 12:56:01 +03:00
MAN8DIR = $( mandir) /man8
2001-09-21 16:37:43 +04:00
2014-03-13 16:01:06 +04:00
MAN8SYSTEMD_GENERATORS = lvm2-activation-generator.8
2010-03-04 12:51:37 +03:00
i n c l u d e $( top_builddir ) / m a k e . t m p l
2001-09-21 16:37:43 +04:00
2014-11-24 02:32:26 +03:00
CLEAN_TARGETS += $( MAN5) $( MAN7) $( MAN8) $( MAN8CLUSTER) $( MAN8SYSTEMD_GENERATORS) $( MAN8DM)
DISTCLEAN_TARGETS += fsadm.8 clvmd.8 cmirrord.8 dmeventd.8 lvmcache.7 lvmthin.7 blkdeactivate.8
2004-08-18 22:57:40 +04:00
2011-09-23 13:48:21 +04:00
all : man device -mapper
2008-10-08 16:50:13 +04:00
2014-04-04 04:14:25 +04:00
.PHONY : man install_man 5 install_man 7 install_man 8
2008-10-08 16:50:13 +04:00
2008-11-04 20:25:32 +03:00
device-mapper : $( MAN 8DM )
2008-11-01 05:19:19 +03:00
2014-11-24 02:32:26 +03:00
man : $( MAN 5) $( MAN 7) $( MAN 8) $( MAN 8CLUSTER ) $( MAN 8SYSTEMD_GENERATORS )
2008-10-08 16:50:13 +04:00
2014-04-04 04:14:25 +04:00
$(MAN5) $(MAN7) $(MAN8) $(MAN8DM) $(MAN8CLUSTER) : Makefile
2008-10-08 16:50:13 +04:00
2014-11-26 01:01:28 +03:00
Makefile : Makefile .in
@:
2008-10-08 16:50:13 +04:00
% : %.in
2010-03-29 18:22:00 +04:00
@case " $@ " in \
*/*) ; ; \
2014-06-05 19:26:53 +04:00
*) echo " Creating $@ " ; $( SED) -e " s+#VERSION#+ $( LVM_VERSION) +;s+#DEFAULT_SYS_DIR#+ $( DEFAULT_SYS_DIR) +;s+#DEFAULT_ARCHIVE_DIR#+ $( DEFAULT_ARCHIVE_DIR) +;s+#DEFAULT_BACKUP_DIR#+ $( DEFAULT_BACKUP_DIR) +;s+#DEFAULT_PROFILE_DIR#+ $( DEFAULT_PROFILE_DIR) +;s+#DEFAULT_CACHE_DIR#+ $( DEFAULT_CACHE_DIR) +;s+#DEFAULT_LOCK_DIR#+ $( DEFAULT_LOCK_DIR) +;s+#CLVMD_PATH#+@CLVMD_PATH@+;s+#LVM_PATH#+@LVM_PATH@+;s+#DEFAULT_RUN_DIR#+@DEFAULT_RUN_DIR@+;s+#DEFAULT_PID_DIR#+@DEFAULT_PID_DIR@+;s+#SYSTEMD_GENERATOR_DIR#+ $( SYSTEMD_GENERATOR_DIR) +;s+#DEFAULT_MANGLING#+ $( DEFAULT_MANGLING) +; " $< > $@ ; ; \
2010-03-29 18:22:00 +04:00
esac
2008-10-08 16:50:13 +04:00
2010-04-10 01:42:48 +04:00
install_man5 : $( MAN 5)
$( INSTALL) -d $( MAN5DIR)
$( INSTALL_DATA) $( MAN5) $( MAN5DIR) /
2014-05-13 14:18:13 +04:00
install_man7 : $( MAN 7)
2014-05-21 12:50:56 +04:00
i f d e f M A N 7
2014-04-04 04:14:25 +04:00
$( INSTALL) -d $( MAN7DIR)
$( INSTALL_DATA) $( MAN7) $( MAN7DIR) /
2014-05-21 12:50:56 +04:00
e n d i f
2014-04-04 04:14:25 +04:00
2010-04-10 01:42:48 +04:00
install_man8 : $( MAN 8)
$( INSTALL) -d $( MAN8DIR)
$( INSTALL_DATA) $( MAN8) $( MAN8DIR) /
2014-04-04 04:14:25 +04:00
install_lvm2 : install_man 5 install_man 7 install_man 8
2010-04-10 01:42:48 +04:00
install_cluster : $( MAN 8CLUSTER )
2014-05-21 12:50:56 +04:00
i f d e f M A N 8 C L U S T E R
2010-04-10 01:42:48 +04:00
$( INSTALL) -d $( MAN8DIR)
$( INSTALL_DATA) $( MAN8CLUSTER) $( MAN8DIR) /
2014-05-21 12:50:56 +04:00
e n d i f
2010-04-10 01:42:48 +04:00
install_device-mapper : $( MAN 8DM )
$( INSTALL) -d $( MAN8DIR)
$( INSTALL_DATA) $( MAN8DM) $( MAN8DIR) /
2009-05-11 14:28:45 +04:00
2014-03-13 16:01:06 +04:00
install_systemd_generators : $( MAN 8SYSTEMD_GENERATORS )
2014-05-21 12:50:56 +04:00
i f d e f M A N 8 S Y S T E M D _ G E N E R A T O R S
2014-03-13 16:01:06 +04:00
$( INSTALL) -d $( MAN8DIR)
$( INSTALL_DATA) $( MAN8SYSTEMD_GENERATORS) $( MAN8DIR) /
2014-05-21 12:50:56 +04:00
e n d i f
2014-03-13 16:01:06 +04:00
2014-11-24 02:32:26 +03:00
install : install_lvm 2 install_device -mapper install_cluster