2 # Copyright (C) 2001-2004 Sistina Software, Inc. All rights reserved.
3 # Copyright (C) 2004-2007 Red Hat, Inc. All rights reserved.
5 # This file is part of LVM2.
7 # This copyrighted material is made available to anyone wishing to use,
8 # modify, copy, or redistribute it subject to the terms and conditions
9 # of the GNU General Public License v.2.
11 # You should have received a copy of the GNU General Public License
12 # along with this program; if not, write to the Free Software Foundation,
13 # Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
27 MAN8=lvchange.8 lvconvert.8 lvcreate.8 lvdisplay.8 lvextend.8 lvm.8 \
28 lvmchange.8 lvmdiskscan.8 lvmdump.8 \
29 lvreduce.8 lvremove.8 lvrename.8 lvresize.8 lvs.8 \
30 lvscan.8 pvchange.8 pvck.8 pvcreate.8 pvdisplay.8 pvmove.8 pvremove.8 \
31 pvresize.8 pvs.8 pvscan.8 vgcfgbackup.8 vgcfgrestore.8 vgchange.8 \
32 vgck.8 vgcreate.8 vgconvert.8 vgdisplay.8 vgexport.8 vgextend.8 \
33 vgimport.8 vgimportclone.8 vgmerge.8 vgmknodes.8 vgreduce.8 vgremove.8 \
34 vgrename.8 vgs.8 vgscan.8 vgsplit.8 $(FSADMMAN)
37 MAN5DIR=${mandir}/man5
38 MAN8DIR=${mandir}/man8
40 CLEAN_TARGETS=$(MAN5) $(MAN8) $(MAN8CLUSTER) $(FSADMMAN) $(MAN8DM)
44 ifneq ("none", "none")
45 install: install_cluster
52 device-mapper: $(MAN8DM)
54 man: $(MAN5) $(MAN8) $(MAN8CLUSTER)
56 $(MAN5) $(MAN8) $(MAN8CLUSTER): Makefile
59 $(SED) -e "s/#VERSION#/$(LVM_VERSION)/" $< > $@
62 @echo "Installing $(MAN8) in $(MAN8DIR)"
65 $(RM) $(MAN8DIR)/$$f; \
66 /usr/bin/install -c -D $(OWNER) $(GROUP) -m 444 $$f $(MAN8DIR)/$$f; \
69 @echo "Installing $(MAN5) in $(MAN5DIR)"
72 $(RM) $(MAN5DIR)/$$f; \
73 /usr/bin/install -c -D $(OWNER) $(GROUP) -m 444 $$f $(MAN5DIR)/$$f; \
77 @echo "Installing $(MAN8CLUSTER) in $(MAN8DIR)"
78 @for f in $(MAN8CLUSTER); \
80 $(RM) $(MAN8DIR)/$$f; \
81 /usr/bin/install -c -D $(OWNER) $(GROUP) -m 444 $$f $(MAN8DIR)/$$f; \
84 install_device-mapper:
85 @echo "Installing $(MAN8DM) in $(MAN8DIR)"
86 @for f in $(MAN8DM); \
88 $(RM) $(MAN8DIR)/$$f; \
89 /usr/bin/install -c -D $(OWNER) $(GROUP) -m 444 $$f $(MAN8DIR)/$$f; \
92 install: install_lvm2 install_device-mapper