1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

man: Add all_man Makefile target.

Use 'make all_man' to generate all man pages (regardless of
configuration options) or 'make install_all_man' to install them.
This commit is contained in:
Alasdair G Kergon 2015-09-15 13:14:16 +01:00
parent 2ce8ee0214
commit 548c09acfc
4 changed files with 19 additions and 5 deletions

View File

@ -131,6 +131,9 @@ rpm: dist
generate: conf.generate generate: conf.generate
$(MAKE) -C conf generate $(MAKE) -C conf generate
all_man:
$(MAKE) -C man all_man
install_system_dirs: install_system_dirs:
$(INSTALL_DIR) $(DESTDIR)$(DEFAULT_SYS_DIR) $(INSTALL_DIR) $(DESTDIR)$(DEFAULT_SYS_DIR)
$(INSTALL_ROOT_DIR) $(DESTDIR)$(DEFAULT_ARCHIVE_DIR) $(INSTALL_ROOT_DIR) $(DESTDIR)$(DEFAULT_ARCHIVE_DIR)
@ -150,8 +153,8 @@ install_systemd_generators:
install_systemd_units: install_systemd_units:
$(MAKE) -C scripts install_systemd_units $(MAKE) -C scripts install_systemd_units
install_full_man: install_all_man:
$(MAKE) -C man install_full_man $(MAKE) -C man install_all_man
ifeq ("@PYTHON_BINDINGS@", "yes") ifeq ("@PYTHON_BINDINGS@", "yes")
install_python_bindings: install_python_bindings:

View File

@ -1,5 +1,6 @@
Version 2.02.131 - Version 2.02.131 -
===================================== =====================================
Rename 'make install_full_man' to install_all_man and add all_man target.
Fix vgimportclone cache_dir path name (2.02.115). Fix vgimportclone cache_dir path name (2.02.115).
Swapping of LV identifiers handles more complex LVs. Swapping of LV identifiers handles more complex LVs.
Use passed list of PVS when allocating space in lvconvert --thinpool. Use passed list of PVS when allocating space in lvconvert --thinpool.

View File

@ -275,7 +275,7 @@ POTFILES = $(SOURCES:%.c=%.pot)
.PHONY: all pofile distclean clean cleandir cflow device-mapper .PHONY: all pofile distclean clean cleandir cflow device-mapper
.PHONY: install install_cluster install_device-mapper install_lvm2 .PHONY: install install_cluster install_device-mapper install_lvm2
.PHONY: install_lib_shared install_dm_plugin install_lvm2_plugin .PHONY: install_lib_shared install_dm_plugin install_lvm2_plugin
.PHONY: install_ocf install_systemd_generators install_full_man help .PHONY: install_ocf install_systemd_generators install_all_man all_man man help
.PHONY: python_bindings install_python_bindings .PHONY: python_bindings install_python_bindings
.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)

View File

@ -42,7 +42,15 @@ MAN8DM=dmsetup.8 dmstats.8
MAN8CLUSTER= MAN8CLUSTER=
MAN8SYSTEMD_GENERATORS=lvm2-activation-generator.8 MAN8SYSTEMD_GENERATORS=lvm2-activation-generator.8
ifeq ($(MAKECMDGOALS),install_full_man) ifeq ($(MAKECMDGOALS),all_man)
MAN_ALL="yes"
endif
ifeq ($(MAKECMDGOALS),install_all_man)
MAN_ALL="yes"
endif
ifeq ($(MAN_ALL),"yes")
MAN8+=$(FSADMMAN) $(LVMETADMAN) $(LVMPOLLDMAN) $(LVMLOCKDMAN) MAN8+=$(FSADMMAN) $(LVMETADMAN) $(LVMPOLLDMAN) $(LVMLOCKDMAN)
MAN8DM+=$(BLKDEACTIVATEMAN) $(DMEVENTDMAN) MAN8DM+=$(BLKDEACTIVATEMAN) $(DMEVENTDMAN)
MAN8CLUSTER+=$(CLVMDMAN) $(CMIRRORDMAN) MAN8CLUSTER+=$(CLVMDMAN) $(CMIRRORDMAN)
@ -109,6 +117,8 @@ device-mapper: $(MAN8DM)
man: $(MAN5) $(MAN7) $(MAN8) $(MAN8CLUSTER) $(MAN8SYSTEMD_GENERATORS) man: $(MAN5) $(MAN7) $(MAN8) $(MAN8CLUSTER) $(MAN8SYSTEMD_GENERATORS)
all_man: man
$(MAN5) $(MAN7) $(MAN8) $(MAN8DM) $(MAN8CLUSTER): Makefile $(MAN5) $(MAN7) $(MAN8) $(MAN8DM) $(MAN8CLUSTER): Makefile
Makefile: Makefile.in Makefile: Makefile.in
@ -150,4 +160,4 @@ install_systemd_generators: $(MAN8SYSTEMD_GENERATORS)
install: install_lvm2 install_device-mapper install_cluster install: install_lvm2 install_device-mapper install_cluster
install_full_man: install install_systemd_generators install_all_man: install install_systemd_generators