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

makefiles: use filter

This commit is contained in:
Zdenek Kabelac 2024-11-05 19:31:45 +01:00
parent d53c71a4f2
commit 987256aaa8
3 changed files with 9 additions and 6 deletions

View File

@ -563,8 +563,9 @@ else
endif
ifeq ("@USE_TRACKING@","yes")
ifeq (,$(findstring $(MAKECMDGOALS),cscope.out cflow clean distclean lcov \
help check check_local check_cluster check_lvmpolld))
MAKE_NODEPS_GOALS := cscope.out cflow clean distclean lcov lcov-reset\
help check check_local check_cluster check_lvmpolld run-unit-test tags
ifeq (,$(filter $(MAKE_NODEPS_GOALS),$(MAKECMDGOALS)))
.SECONDARY:
# Note: no tabs before -include
-include $(SOURCES:.c=.d) $(SOURCES2:.c=.d) $(CXXSOURCES:.cpp=.d)

View File

@ -637,8 +637,9 @@ else
endif
ifeq ("$(USE_TRACKING)","yes")
ifeq (,$(findstring $(MAKECMDGOALS),cscope.out cflow clean distclean lcov lcov-reset \
help check check_local check_cluster check_lvmpolld run-unit-test tags))
MAKE_NODEPS_GOALS := cscope.out cflow clean distclean lcov lcov-reset\
help check check_local check_cluster check_lvmpolld run-unit-test tags
ifeq (,$(filter $(MAKE_NODEPS_GOALS),$(MAKECMDGOALS)))
.SECONDARY:
# Note: no tabs before -include
-include $(SOURCES:.c=.d) $(SOURCES2:.c=.d) $(CXXSOURCES:.cpp=.d)

View File

@ -48,7 +48,8 @@ MAN8SO=lvm-config.8 lvm-dumpconfig.8
MAN8DM=dmsetup.8 dmstats.8
MAN8CLUSTER=
ifeq (,$(findstring $(MAKECMDGOALS), distclean all_man install_all_man))
MAN_ALL_GOALS := distclean all_man install_all_man
ifeq (,$(filter $(MAN_ALL_GOALS),$(MAKECMDGOALS)))
MAN7 += lvmcache.7 lvmthin.7 lvmvdo.7
MAN8+=$(FSADMMAN) $(LVMPOLLDMAN) $(LVMLOCKDMAN) $(LVMDBUSDMAN) $(LVMIMPORTVDOMAN)
MAN8DM+=$(BLKDEACTIVATEMAN) $(DMEVENTDMAN) $(DMFILEMAPDMAN)
@ -279,7 +280,7 @@ install_man8: $(MAN8) $(MAN8SO)
install_lvm2: install_man5 install_man7 install_man8
install_cluster: $(MAN8CLUSTER)
ifdef MAN8CLUSTER
ifneq ($(MAN8CLUSTER),)
$(SHOW) " [INSTALL] $^"
$(Q) $(INSTALL) -d $(MAN8DIR)
$(Q) $(INSTALL_DATA) $^ $(MAN8DIR)/