mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-02 01:18:26 +03:00
make install_device-mapper
This commit is contained in:
parent
7f78616f3d
commit
77b69aa724
@ -61,6 +61,8 @@ endif
|
|||||||
|
|
||||||
install: $(INSTALL_TYPE) install_include install_dmeventd
|
install: $(INSTALL_TYPE) install_include install_dmeventd
|
||||||
|
|
||||||
|
install_device-mapper: install
|
||||||
|
|
||||||
install_include:
|
install_include:
|
||||||
$(INSTALL) -D $(OWNER) $(GROUP) -m 444 libdevmapper-event.h \
|
$(INSTALL) -D $(OWNER) $(GROUP) -m 444 libdevmapper-event.h \
|
||||||
$(includedir)/libdevmapper-event.h
|
$(includedir)/libdevmapper-event.h
|
||||||
|
@ -20,7 +20,7 @@ VPATH = @srcdir@
|
|||||||
|
|
||||||
LN_S = @LN_S@
|
LN_S = @LN_S@
|
||||||
|
|
||||||
.PHONY: clean distclean all install pofile install_cluster
|
.PHONY: clean distclean all install pofile install_cluster install_device-mapper
|
||||||
|
|
||||||
all: .symlinks_created
|
all: .symlinks_created
|
||||||
|
|
||||||
@ -43,5 +43,7 @@ install:
|
|||||||
|
|
||||||
install_cluster:
|
install_cluster:
|
||||||
|
|
||||||
|
install_device-mapper:
|
||||||
|
|
||||||
cflow:
|
cflow:
|
||||||
|
|
||||||
|
@ -67,6 +67,8 @@ endif
|
|||||||
|
|
||||||
install: $(INSTALL_TYPE) install_include
|
install: $(INSTALL_TYPE) install_include
|
||||||
|
|
||||||
|
install_device-mapper: install
|
||||||
|
|
||||||
install_include:
|
install_include:
|
||||||
$(INSTALL) -D $(OWNER) $(GROUP) -m 444 libdevmapper.h \
|
$(INSTALL) -D $(OWNER) $(GROUP) -m 444 libdevmapper.h \
|
||||||
$(includedir)/libdevmapper.h
|
$(includedir)/libdevmapper.h
|
||||||
|
@ -130,6 +130,7 @@ OBJECTS = $(SOURCES:%.c=%.o)
|
|||||||
POTFILES = $(SOURCES:%.c=%.pot)
|
POTFILES = $(SOURCES:%.c=%.pot)
|
||||||
|
|
||||||
.PHONY: all install install_cluster pofile distclean clean cflow device-mapper
|
.PHONY: all install install_cluster pofile distclean clean cflow device-mapper
|
||||||
|
.PHONY: install_device-mapper
|
||||||
.PHONY: $(SUBDIRS) $(SUBDIRS.install) $(SUBDIRS.clean) $(SUBDIRS.distclean)
|
.PHONY: $(SUBDIRS) $(SUBDIRS.install) $(SUBDIRS.clean) $(SUBDIRS.distclean)
|
||||||
.PHONY: $(SUBDIRS.pofile) $(SUBDIRS.install_cluster) $(SUBDIRS.cflow)
|
.PHONY: $(SUBDIRS.pofile) $(SUBDIRS.install_cluster) $(SUBDIRS.cflow)
|
||||||
.PHONY: $(SUBDIRS.device-mapper) $(SUBDIRS.install-device-mapper)
|
.PHONY: $(SUBDIRS.device-mapper) $(SUBDIRS.install-device-mapper)
|
||||||
@ -163,7 +164,7 @@ $(SUBDIRS.install): $(SUBDIRS)
|
|||||||
$(SUBDIRS.install_cluster): $(SUBDIRS)
|
$(SUBDIRS.install_cluster): $(SUBDIRS)
|
||||||
$(MAKE) -C $(@:.install_cluster=) install_cluster
|
$(MAKE) -C $(@:.install_cluster=) install_cluster
|
||||||
|
|
||||||
$(SUBDIRS.install_device-mapper): $(SUBDIRS)
|
$(SUBDIRS.install_device-mapper): device-mapper
|
||||||
$(MAKE) -C $(@:.install_device-mapper=) install_device-mapper
|
$(MAKE) -C $(@:.install_device-mapper=) install_device-mapper
|
||||||
|
|
||||||
$(SUBDIRS.clean):
|
$(SUBDIRS.clean):
|
||||||
|
@ -32,10 +32,11 @@ MAN8=lvchange.8 lvconvert.8 lvcreate.8 lvdisplay.8 lvextend.8 lvm.8 \
|
|||||||
vgimport.8 vgmerge.8 vgmknodes.8 vgreduce.8 vgremove.8 vgrename.8 \
|
vgimport.8 vgmerge.8 vgmknodes.8 vgreduce.8 vgremove.8 vgrename.8 \
|
||||||
vgs.8 vgscan.8 vgsplit.8 $(FSADMMAN)
|
vgs.8 vgscan.8 vgsplit.8 $(FSADMMAN)
|
||||||
MAN8CLUSTER=clvmd.8
|
MAN8CLUSTER=clvmd.8
|
||||||
|
MAN8DM=dmsetup.8
|
||||||
MAN5DIR=${mandir}/man5
|
MAN5DIR=${mandir}/man5
|
||||||
MAN8DIR=${mandir}/man8
|
MAN8DIR=${mandir}/man8
|
||||||
|
|
||||||
CLEAN_TARGETS=$(MAN5) $(MAN8) $(MAN8CLUSTER) $(FSADMMAN) dmsetup.8
|
CLEAN_TARGETS=$(MAN5) $(MAN8) $(MAN8CLUSTER) $(FSADMMAN) $(MAN8DM)
|
||||||
|
|
||||||
include $(top_srcdir)/make.tmpl
|
include $(top_srcdir)/make.tmpl
|
||||||
|
|
||||||
@ -47,7 +48,7 @@ all: man
|
|||||||
|
|
||||||
.PHONY: man
|
.PHONY: man
|
||||||
|
|
||||||
device-mapper: dmsetup.8
|
device-mapper: $(MAN8DM)
|
||||||
|
|
||||||
man: $(MAN5) $(MAN8) $(MAN8CLUSTER)
|
man: $(MAN5) $(MAN8) $(MAN8CLUSTER)
|
||||||
|
|
||||||
@ -56,7 +57,7 @@ $(MAN5) $(MAN8) $(MAN8CLUSTER): Makefile
|
|||||||
%: %.in
|
%: %.in
|
||||||
$(SED) -e "s/#VERSION#/$(LVM_VERSION)/" $< > $@
|
$(SED) -e "s/#VERSION#/$(LVM_VERSION)/" $< > $@
|
||||||
|
|
||||||
install:
|
install: install_device-mapper
|
||||||
@echo "Installing $(MAN8) in $(MAN8DIR)"
|
@echo "Installing $(MAN8) in $(MAN8DIR)"
|
||||||
@for f in $(MAN8); \
|
@for f in $(MAN8); \
|
||||||
do \
|
do \
|
||||||
@ -78,3 +79,11 @@ install_cluster:
|
|||||||
$(RM) $(MAN8DIR)/$$f; \
|
$(RM) $(MAN8DIR)/$$f; \
|
||||||
@INSTALL@ -D $(OWNER) $(GROUP) -m 444 $$f $(MAN8DIR)/$$f; \
|
@INSTALL@ -D $(OWNER) $(GROUP) -m 444 $$f $(MAN8DIR)/$$f; \
|
||||||
done
|
done
|
||||||
|
|
||||||
|
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
|
||||||
|
@ -66,12 +66,14 @@ TARGETS =\
|
|||||||
.commands \
|
.commands \
|
||||||
lvm
|
lvm
|
||||||
|
|
||||||
INSTALL_TARGETS = install_tools_dynamic
|
INSTALL_LVM_TARGETS = install_tools_dynamic
|
||||||
|
INSTALL_DMSETUP_TARGETS = install_dmsetup_dynamic
|
||||||
INSTALL_CMDLIB_TARGETS = install_cmdlib_dynamic
|
INSTALL_CMDLIB_TARGETS = install_cmdlib_dynamic
|
||||||
|
|
||||||
ifeq ("@STATIC_LINK@", "yes")
|
ifeq ("@STATIC_LINK@", "yes")
|
||||||
TARGETS += lvm.static
|
TARGETS += lvm.static
|
||||||
INSTALL_TARGETS += install_tools_static
|
INSTALL_LVM_TARGETS += install_tools_static
|
||||||
|
INSTALL_DMSETUP_TARGETS += install_dmsetup_static
|
||||||
INSTALL_CMDLIB_TARGETS += install_cmdlib_static
|
INSTALL_CMDLIB_TARGETS += install_cmdlib_static
|
||||||
endif
|
endif
|
||||||
|
|
||||||
@ -84,7 +86,7 @@ CLEAN_TARGETS = liblvm2cmd.so liblvm2cmd.a liblvm2cmd-static.a lvm lvm.o \
|
|||||||
|
|
||||||
ifeq ("@CMDLIB@", "yes")
|
ifeq ("@CMDLIB@", "yes")
|
||||||
TARGETS += liblvm2cmd.so
|
TARGETS += liblvm2cmd.so
|
||||||
INSTALL_TARGETS += $(INSTALL_CMDLIB_TARGETS)
|
INSTALL_LVM_TARGETS += $(INSTALL_CMDLIB_TARGETS)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ("@DMEVENTD@", "yes")
|
ifeq ("@DMEVENTD@", "yes")
|
||||||
@ -182,4 +184,12 @@ install_tools_static: lvm.static
|
|||||||
$(INSTALL) -D $(OWNER) $(GROUP) -m 555 $(STRIP) lvm.static \
|
$(INSTALL) -D $(OWNER) $(GROUP) -m 555 $(STRIP) lvm.static \
|
||||||
$(staticdir)/lvm.static
|
$(staticdir)/lvm.static
|
||||||
|
|
||||||
install: $(INSTALL_TARGETS)
|
install_dmsetup_dynamic: dmsetup
|
||||||
|
$(INSTALL) -D $(OWNER) $(GROUP) -m 555 $(STRIP) $< $(sbindir)/$<
|
||||||
|
|
||||||
|
install_dmsetup_static: dmsetup.static
|
||||||
|
$(INSTALL) -D $(OWNER) $(GROUP) -m 555 $(STRIP) $< $(sbindir)/$<
|
||||||
|
|
||||||
|
install_device-mapper: $(INSTALL_DMSETUP_TARGETS)
|
||||||
|
|
||||||
|
install: $(INSTALL_LVM_TARGETS) install_device-mapper
|
||||||
|
Loading…
Reference in New Issue
Block a user