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.
2007-08-21 00:55:30 +04:00
# Copyright (C) 2004-2007 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
VPATH = @srcdir@
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
2001-12-31 20:20:22 +03:00
MAN5 = lvm.conf.5
2006-08-21 16:07:03 +04:00
MAN8 = lvchange.8 lvconvert.8 lvcreate.8 lvdisplay.8 lvextend.8 lvm.8 \
2006-11-20 23:03:26 +03:00
lvmchange.8 lvmdiskscan.8 lvmdump.8 \
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 \
vgrename.8 vgs.8 vgscan.8 vgsplit.8 $( FSADMMAN)
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
i f e q ( "@BUILD_CMIRRORD@" , "yes" )
MAN8CLUSTER += cmirrord.8
e n d i f
2008-11-04 20:25:32 +03:00
MAN8DM = dmsetup.8
2010-03-04 12:56:01 +03:00
MAN5DIR = $( mandir) /man5
MAN8DIR = $( mandir) /man8
2001-09-21 16:37:43 +04:00
2008-11-04 20:25:32 +03:00
CLEAN_TARGETS = $( MAN5) $( MAN8) $( MAN8CLUSTER) $( FSADMMAN) $( MAN8DM)
2010-03-29 18:17:59 +04:00
DISTCLEAN_TARGETS = fsadm.8 clvmd.8 cmirrord.8
2008-10-08 16:50:13 +04:00
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
2004-12-09 19:57:37 +03:00
i f n e q ( "@CLVMD@" , "none" )
2004-08-18 22:57:40 +04:00
install: install_cluster
e n d i f
2008-10-08 16:50:13 +04:00
all : man
.PHONY : man
2008-11-04 20:25:32 +03:00
device-mapper : $( MAN 8DM )
2008-11-01 05:19:19 +03:00
2008-10-08 16:50:13 +04:00
man : $( MAN 5) $( MAN 8) $( MAN 8CLUSTER )
$(MAN5) $(MAN8) $(MAN8CLUSTER) : Makefile
% : %.in
2010-03-29 18:22:00 +04:00
@case " $@ " in \
*/*) ; ; \
*) echo " Creating $@ " ; $( SED) -e " s/#VERSION#/ $( LVM_VERSION) / " $< > $@ ; ; \
esac
2008-10-08 16:50:13 +04:00
2009-05-11 14:28:45 +04:00
install_lvm2 :
2002-01-02 17:23:10 +03:00
@echo " Installing $( MAN8) in $( MAN8DIR) "
2001-12-31 20:20:22 +03:00
@for f in $( MAN8) ; \
2001-09-21 16:37:43 +04:00
do \
2002-01-02 17:23:10 +03:00
$( RM) $( MAN8DIR) /$$ f; \
2004-04-19 17:10:06 +04:00
@INSTALL@ -D $( OWNER) $( GROUP) -m 444 $$ f $( MAN8DIR) /$$ f; \
2001-09-21 16:37:43 +04:00
done
2003-09-15 18:57:15 +04:00
@echo " Installing $( MAN5) in $( MAN5DIR) "
2001-12-31 20:20:22 +03:00
@for f in $( MAN5) ; \
do \
2002-01-02 17:23:10 +03:00
$( RM) $( MAN5DIR) /$$ f; \
2004-04-19 17:10:06 +04:00
@INSTALL@ -D $( OWNER) $( GROUP) -m 444 $$ f $( MAN5DIR) /$$ f; \
2001-12-31 20:20:22 +03:00
done
2004-08-18 22:57:40 +04:00
install_cluster :
@echo " Installing $( MAN8CLUSTER) in $( MAN8DIR) "
@for f in $( MAN8CLUSTER) ; \
do \
$( RM) $( MAN8DIR) /$$ f; \
@INSTALL@ -D $( OWNER) $( GROUP) -m 444 $$ f $( MAN8DIR) /$$ f; \
done
2008-11-04 20:25:32 +03:00
install_device-mapper :
@echo " Installing $( MAN8DM) in $( MAN8DIR) "
@for f in $( MAN8DM) ; \
do \
$( RM) $( MAN8DIR) /$$ f; \
@INSTALL@ -D $( OWNER) $( GROUP) -m 444 $$ f $( MAN8DIR) /$$ f; \
done
2009-05-11 14:28:45 +04:00
install : install_lvm 2 install_device -mapper