]>
Commit | Line | Data |
---|---|---|
795ca3e5 | 1 | # |
6606c3ae | 2 | # Copyright (C) 2001-2004 Sistina Software, Inc. All rights reserved. |
598c92ff | 3 | # Copyright (C) 2004-2011 Red Hat, Inc. All rights reserved. |
795ca3e5 | 4 | # |
7f8f8bfa | 5 | # This file is part of LVM2. |
795ca3e5 | 6 | # |
6606c3ae AK |
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. | |
795ca3e5 | 10 | # |
6606c3ae AK |
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 | |
795ca3e5 AK |
14 | |
15 | srcdir = @srcdir@ | |
16 | top_srcdir = @top_srcdir@ | |
db8b5af9 | 17 | top_builddir = @top_builddir@ |
795ca3e5 | 18 | |
0ed230fa ZK |
19 | ifeq ("@FSADM@", "yes") |
20 | FSADMMAN = fsadm.8 | |
21 | else | |
22 | FSADMMAN = | |
23 | endif | |
24 | ||
c5782bcf ZK |
25 | ifeq ("@DMEVENTD@", "yes") |
26 | DMEVENTDMAN = dmeventd.8 | |
27 | else | |
28 | DMEVENTDMAN = | |
29 | endif | |
30 | ||
ef91884b | 31 | MAN5=lvm.conf.5 |
7d7736b7 | 32 | MAN8=lvchange.8 lvconvert.8 lvcreate.8 lvdisplay.8 lvextend.8 lvm.8 \ |
f6da9ca8 | 33 | lvmchange.8 lvmconf.8 lvmdiskscan.8 lvmdump.8 lvmsadc.8 lvmsar.8 \ |
4eee5764 | 34 | lvreduce.8 lvremove.8 lvrename.8 lvresize.8 lvs.8 \ |
cc5a4e1d | 35 | lvscan.8 pvchange.8 pvck.8 pvcreate.8 pvdisplay.8 pvmove.8 pvremove.8 \ |
3bf5f6f5 AK |
36 | pvresize.8 pvs.8 pvscan.8 vgcfgbackup.8 vgcfgrestore.8 vgchange.8 \ |
37 | vgck.8 vgcreate.8 vgconvert.8 vgdisplay.8 vgexport.8 vgextend.8 \ | |
761e5741 | 38 | vgimport.8 vgimportclone.8 vgmerge.8 vgmknodes.8 vgreduce.8 vgremove.8 \ |
22a85923 | 39 | vgrename.8 vgs.8 vgscan.8 vgsplit.8 $(FSADMMAN) |
81410c8f AK |
40 | |
41 | ifneq ("@CLVMD@", "none") | |
42 | MAN8CLUSTER=clvmd.8 | |
43 | else | |
44 | MAN8CLUSTER= | |
45 | endif | |
46 | ifeq ("@BUILD_CMIRRORD@", "yes") | |
47 | MAN8CLUSTER+=cmirrord.8 | |
48 | endif | |
49 | ||
22a85923 | 50 | MAN8DM=dmsetup.8 $(DMEVENTDMAN) |
76602ee8 ZK |
51 | MAN5DIR=$(mandir)/man5 |
52 | MAN8DIR=$(mandir)/man8 | |
795ca3e5 | 53 | |
c5782bcf ZK |
54 | CLEAN_TARGETS=$(MAN5) $(MAN8) $(MAN8CLUSTER) $(FSADMMAN) $(DMEVENTDMAN) $(MAN8DM) |
55 | DISTCLEAN_TARGETS=fsadm.8 clvmd.8 cmirrord.8 dmeventd.8 | |
5951ef33 | 56 | |
814aebc4 | 57 | include $(top_builddir)/make.tmpl |
795ca3e5 | 58 | |
db7e9905 | 59 | ifneq ("@CLVMD@", "none") |
cab8ea7c AK |
60 | install: install_cluster |
61 | endif | |
62 | ||
598c92ff | 63 | all: man device-mapper |
5951ef33 | 64 | |
23b059e7 | 65 | .PHONY: man install_man5 install_man8 |
5951ef33 | 66 | |
77b69aa7 | 67 | device-mapper: $(MAN8DM) |
0782ad50 | 68 | |
5951ef33 AK |
69 | man: $(MAN5) $(MAN8) $(MAN8CLUSTER) |
70 | ||
87d8e3c3 | 71 | $(MAN5) $(MAN8) $(MAN8DM) $(MAN8CLUSTER): Makefile |
5951ef33 AK |
72 | |
73 | %: %.in | |
613eea2d ZK |
74 | @case "$@" in \ |
75 | */*) ;; \ | |
d2c11605 | 76 | *) 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_CACHE_DIR#+$(DEFAULT_CACHE_DIR)+;s+#DEFAULT_LOCK_DIR#+$(DEFAULT_LOCK_DIR)+;s+#CLVMD_PATH#+@CLVMD_PATH@+;s+#LVM_PATH#+@LVM_PATH@+;" $< > $@ ;; \ |
613eea2d | 77 | esac |
5951ef33 | 78 | |
23b059e7 ZK |
79 | install_man5: $(MAN5) |
80 | $(INSTALL) -d $(MAN5DIR) | |
81 | $(INSTALL_DATA) $(MAN5) $(MAN5DIR)/ | |
82 | ||
83 | install_man8: $(MAN8) | |
84 | $(INSTALL) -d $(MAN8DIR) | |
85 | $(INSTALL_DATA) $(MAN8) $(MAN8DIR)/ | |
86 | ||
87 | install_lvm2: install_man5 install_man8 | |
88 | ||
89 | install_cluster: $(MAN8CLUSTER) | |
90 | $(INSTALL) -d $(MAN8DIR) | |
91 | $(INSTALL_DATA) $(MAN8CLUSTER) $(MAN8DIR)/ | |
92 | ||
93 | install_device-mapper: $(MAN8DM) | |
94 | $(INSTALL) -d $(MAN8DIR) | |
95 | $(INSTALL_DATA) $(MAN8DM) $(MAN8DIR)/ | |
0b502933 MB |
96 | |
97 | install: install_lvm2 install_device-mapper |