Version 2.00.21 -
=============================
+ Use 'make install_cluster' to install cluster extensions only.
Cope with DT_UNKNOWN in sysfs.
Fix extents_moved metadata size comment.
Remove duplicate line in pvremove help text.
$(sbindir)/clvmd
install: $(INSTALL_TARGETS)
+
+install_cluster: $(INSTALL_TARGETS)
+
LN_S = @LN_S@
+.PHONY: clean distclean all install pofile install_cluster
+
all: .symlinks_created
.symlinks_created: .symlinks
install:
-.PHONY: clean distclean all install pofile
+install_cluster:
include $(top_srcdir)/make.tmpl
-.PHONY: install
-
install: liblvm2format1.so
$(INSTALL) -D $(OWNER) $(GROUP) -m 555 $(STRIP) $< \
$(libdir)/liblvm2format1.so.$(LIB_VERSION)
include $(top_srcdir)/make.tmpl
-.PHONY: install
-
install: liblvm2formatpool.so
$(INSTALL) -D $(OWNER) $(GROUP) -m 555 $(STRIP) $< \
$(libdir)/liblvm2formatpool.so.$(LIB_VERSION)
include $(top_srcdir)/make.tmpl
-.PHONY: install
-
-install: liblvm2clusterlock.so
+install install_cluster: liblvm2clusterlock.so
$(INSTALL) -D $(OWNER) $(GROUP) -m 555 $(STRIP) $< \
$(libdir)/liblvm2clusterlock.so.$(LIB_VERSION)
$(LN_S) -f liblvm2clusterlock.so.$(LIB_VERSION) \
include $(top_srcdir)/make.tmpl
-.PHONY: install
-
install: liblvm2mirror.so
$(INSTALL) -D $(OWNER) $(GROUP) -m 555 $(STRIP) $< \
$(libdir)/liblvm2mirror.so.$(LIB_VERSION)
include $(top_srcdir)/make.tmpl
-.PHONY: install
-
install: liblvm2snapshot.so
$(INSTALL) -D $(OWNER) $(GROUP) -m 555 $(STRIP) $< \
$(libdir)/liblvm2snapshot.so.$(LIB_VERSION)
OBJECTS = $(SOURCES:%.c=%.o)
POTFILES = $(SOURCES:%.c=%.pot)
+.PHONY: all install install_cluster pofile distclean clean
+.PHONY: $(SUBDIRS) $(SUBDIRS.install) $(SUBDIRS.clean) $(SUBDIRS.distclean)
+.PHONY: $(SUBDIRS.pofile) $(SUBDIRS.install_cluster)
+
SUBDIRS.install := $(SUBDIRS:=.install)
+SUBDIRS.install_cluster := $(SUBDIRS:=.install_cluster)
SUBDIRS.pofile := $(SUBDIRS:=.pofile)
SUBDIRS.clean := $(SUBDIRS:=.clean)
SUBDIRS.distclean := $(SUBDIRS:=.distclean)
-.PHONY: all install pofile distclean clean
-.PHONY: $(SUBDIRS) $(SUBDIRS.install) $(SUBDIRS.clean) $(SUBDIRS.distclean)
-.PHONY: $(SUBDIRS.pofile)
-
TARGETS += $(LIB_SHARED) $(LIB_STATIC)
all: $(SUBDIRS) $(TARGETS)
install: all $(SUBDIRS.install)
+install_cluster: all $(SUBDIRS.install_cluster)
$(SUBDIRS):
$(MAKE) -C $@
$(SUBDIRS.install): $(SUBDIRS)
$(MAKE) -C $(@:.install=) install
+$(SUBDIRS.install_cluster): $(SUBDIRS)
+ $(MAKE) -C $(@:.install_cluster=) install_cluster
+
$(SUBDIRS.clean):
-$(MAKE) -C $(@:.clean=) clean
vgconvert.8 vgdisplay.8 vgexport.8 vgextend.8 vgimport.8 \
vgmerge.8 vgmknodes.8 vgreduce.8 vgremove.8 vgrename.8 \
vgs.8 vgscan.8 vgsplit.8
+MAN8CLUSTER=clvmd.8
MAN5DIR=${mandir}/man5
MAN8DIR=${mandir}/man8
include $(top_srcdir)/make.tmpl
+ifeq ("@CLVMD@", "yes")
+ install: install_cluster
+endif
+
install:
@echo "Installing $(MAN8) in $(MAN8DIR)"
@for f in $(MAN8); \
$(RM) $(MAN5DIR)/$$f; \
@INSTALL@ -D $(OWNER) $(GROUP) -m 444 $$f $(MAN5DIR)/$$f; \
done
+
+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