mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
Fixing another set of distclean problems where we left some generated files
in clvmd, dmevend, man, tests. Don't include dependency files for clow and cscope.out targets Improve dependency tracking for dmeventd and liblvm2cmd sources.
This commit is contained in:
parent
b41f5924bf
commit
b7be589ed0
@ -34,12 +34,9 @@ ifeq ("@APPLIB@", "yes")
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(MAKECMDGOALS),distclean)
|
ifeq ($(MAKECMDGOALS),distclean)
|
||||||
SUBDIRS += liblvm \
|
SUBDIRS = doc include man scripts \
|
||||||
udev \
|
lib tools daemons libdm \
|
||||||
test/api \
|
udev po liblvm test/api test
|
||||||
test \
|
|
||||||
po
|
|
||||||
DISTCLEAN_TARGETS += lib/misc/configure.h lib/misc/lvm-version.h
|
|
||||||
DISTCLEAN_DIRS += lcov_reports*
|
DISTCLEAN_DIRS += lcov_reports*
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
Version 2.02.63 -
|
Version 2.02.63 -
|
||||||
================================
|
================================
|
||||||
|
Improved dependency tracking for dmeventd and liblvm2cmd sources.
|
||||||
|
Improved Makefile rules for distclean and cflow targets.
|
||||||
Add ability to create mirrored logs for mirror LVs.
|
Add ability to create mirrored logs for mirror LVs.
|
||||||
Use a real socket for singlenode clvmd to fix clvmd's high cpu load.
|
Use a real socket for singlenode clvmd to fix clvmd's high cpu load.
|
||||||
Fix clvmd cluster propagation of dmeventd monitoring mode.
|
Fix clvmd cluster propagation of dmeventd monitoring mode.
|
||||||
|
@ -76,6 +76,14 @@ ifneq (,$(findstring singlenode,, "@CLVMD@,"))
|
|||||||
DEFS += -DUSE_SINGLENODE
|
DEFS += -DUSE_SINGLENODE
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifeq ($(MAKECMDGOALS),distclean)
|
||||||
|
SOURCES += clvmd-gulm.c tcp-comms.c
|
||||||
|
SOURCES += clvmd-cman.c
|
||||||
|
SOURCES += clvmd-openais.c
|
||||||
|
SOURCES += clvmd-corosync.c
|
||||||
|
SOURCES += clvmd-singlenode.c
|
||||||
|
endif
|
||||||
|
|
||||||
TARGETS = \
|
TARGETS = \
|
||||||
clvmd
|
clvmd
|
||||||
|
|
||||||
@ -109,4 +117,3 @@ install_clvmd: $(TARGETS)
|
|||||||
install: $(INSTALL_TARGETS)
|
install: $(INSTALL_TARGETS)
|
||||||
|
|
||||||
install_cluster: $(INSTALL_TARGETS)
|
install_cluster: $(INSTALL_TARGETS)
|
||||||
|
|
||||||
|
@ -17,6 +17,8 @@ top_builddir = @top_builddir@
|
|||||||
VPATH = @srcdir@
|
VPATH = @srcdir@
|
||||||
|
|
||||||
SOURCES = libdevmapper-event.c
|
SOURCES = libdevmapper-event.c
|
||||||
|
SOURCES2 = dmeventd.c
|
||||||
|
|
||||||
TARGETS = dmeventd
|
TARGETS = dmeventd
|
||||||
|
|
||||||
.PHONY: install_lib_dynamic install_lib_static install_include \
|
.PHONY: install_lib_dynamic install_lib_static install_include \
|
||||||
@ -118,10 +120,9 @@ install: install_include install_lib install_dmeventd
|
|||||||
|
|
||||||
install_device-mapper: install_include install_lib install_dmeventd
|
install_device-mapper: install_include install_lib install_dmeventd
|
||||||
|
|
||||||
.PHONY: distclean_lib distclean
|
.PHONY: distclean_lib
|
||||||
|
|
||||||
distclean_lib:
|
distclean_lib:
|
||||||
$(RM) libdevmapper-event.pc
|
$(RM) libdevmapper-event.pc
|
||||||
|
|
||||||
distclean: distclean_lib
|
distclean: distclean_lib
|
||||||
|
|
||||||
|
@ -165,3 +165,5 @@ CFLOW_LIST_TARGET = $(LIB_NAME).cflow
|
|||||||
include $(top_builddir)/make.tmpl
|
include $(top_builddir)/make.tmpl
|
||||||
|
|
||||||
$(SUBDIRS): $(LIB_STATIC)
|
$(SUBDIRS): $(LIB_STATIC)
|
||||||
|
|
||||||
|
DISTCLEAN_TARGETS += misc/configure.h misc/lvm-version.h
|
||||||
|
@ -106,9 +106,9 @@ $(VERSIONED_SHLIB): %.$(LIB_SUFFIX).$(LIB_VERSION_DM): $(interface)/%.$(LIB_SUFF
|
|||||||
rm -f libdevmapper.$(LIB_SUFFIX)
|
rm -f libdevmapper.$(LIB_SUFFIX)
|
||||||
$(LN_S) $< libdevmapper.$(LIB_SUFFIX)
|
$(LN_S) $< libdevmapper.$(LIB_SUFFIX)
|
||||||
|
|
||||||
CLEAN_TARGETS += libdevmapper.$(LIB_SUFFIX)
|
CLEAN_TARGETS += libdevmapper.$(LIB_SUFFIX) ioctl/libdevmapper.a
|
||||||
|
|
||||||
.PHONY: distclean_lib distclean
|
.PHONY: distclean_lib
|
||||||
|
|
||||||
distclean_lib:
|
distclean_lib:
|
||||||
$(RM) libdevmapper.pc
|
$(RM) libdevmapper.pc
|
||||||
|
14
make.tmpl.in
14
make.tmpl.in
@ -301,12 +301,12 @@ $(LIB_STATIC): $(OBJECTS)
|
|||||||
$(MSGFMT) -o $@ $<
|
$(MSGFMT) -o $@ $<
|
||||||
|
|
||||||
clean: $(SUBDIRS.clean)
|
clean: $(SUBDIRS.clean)
|
||||||
$(RM) $(OBJECTS) $(TARGETS) $(CLEAN_TARGETS) $(SOURCES:%.c=%.d) \
|
$(RM) $(OBJECTS) $(TARGETS) $(CLEAN_TARGETS) $(CLEAN_CFLOW) $(LDDEPS) \
|
||||||
$(SOURCES2:%.c=%.d) $(SOURCES:%.c=%.pot) $(SOURCES:%.c=%.gcno) \
|
$(POTFILES) $(SOURCES:%.c=%.d) $(SOURCES:%.c=%.gcno) $(SOURCES:%.c=%.gcda) \
|
||||||
$(SOURCES:%.c=%.gcda) $(LDDEPS) $(CLEAN_CFLOW)
|
$(SOURCES2:%.c=%.o) $(SOURCES2:%.c=%.d) $(SOURCES2:%.c=%.gcno) $(SOURCES2:%.c=%.gcda)
|
||||||
|
|
||||||
distclean: clean $(SUBDIRS.distclean)
|
distclean: clean $(SUBDIRS.distclean)
|
||||||
$(RM) -rf $(DISTCLEAN_DIRS)
|
$(RM) -r $(DISTCLEAN_DIRS)
|
||||||
$(RM) $(DISTCLEAN_TARGETS) \
|
$(RM) $(DISTCLEAN_TARGETS) \
|
||||||
config.cache config.log config.status \
|
config.cache config.log config.status \
|
||||||
Makefile make.tmpl core \
|
Makefile make.tmpl core \
|
||||||
@ -317,15 +317,11 @@ distclean: clean $(SUBDIRS.distclean)
|
|||||||
sed "s/^/ /;s/$$/;/" < $<; \
|
sed "s/^/ /;s/$$/;/" < $<; \
|
||||||
echo " local:"; echo " *;"; echo "};") > $@
|
echo " local:"; echo " *;"; echo "};") > $@
|
||||||
|
|
||||||
ifneq ($(MAKECMDGOALS),cflow)
|
ifeq (,$(findstring $(MAKECMDGOALS),cscope.out cflow clean distclean))
|
||||||
ifneq ($(MAKECMDGOALS),clean)
|
|
||||||
ifneq ($(MAKECMDGOALS),distclean)
|
|
||||||
ifdef SOURCES
|
ifdef SOURCES
|
||||||
-include $(SOURCES:.c=.d)
|
-include $(SOURCES:.c=.d)
|
||||||
endif
|
endif
|
||||||
ifdef SOURCES2
|
ifdef SOURCES2
|
||||||
-include $(SOURCES2:.c=.d)
|
-include $(SOURCES2:.c=.d)
|
||||||
endif
|
endif
|
||||||
endif
|
|
||||||
endif
|
|
||||||
endif
|
endif
|
||||||
|
@ -47,6 +47,7 @@ MAN5DIR=$(mandir)/man5
|
|||||||
MAN8DIR=$(mandir)/man8
|
MAN8DIR=$(mandir)/man8
|
||||||
|
|
||||||
CLEAN_TARGETS=$(MAN5) $(MAN8) $(MAN8CLUSTER) $(FSADMMAN) $(MAN8DM)
|
CLEAN_TARGETS=$(MAN5) $(MAN8) $(MAN8CLUSTER) $(FSADMMAN) $(MAN8DM)
|
||||||
|
DISTCLEAN_TARGETS=fsadm.8 clvmd.8 cmirrord.8
|
||||||
|
|
||||||
include $(top_builddir)/make.tmpl
|
include $(top_builddir)/make.tmpl
|
||||||
|
|
||||||
|
@ -28,14 +28,16 @@ abs_top_srcdir = @abs_top_srcdir@
|
|||||||
# Shell quote;
|
# Shell quote;
|
||||||
SHELL_PATH_SQ = $(subst ','\'',$(SHELL_PATH))
|
SHELL_PATH_SQ = $(subst ','\'',$(SHELL_PATH))
|
||||||
|
|
||||||
T = $(wildcard $(srcdir)/t-*.sh)
|
SCRIPTS := $(wildcard $(srcdir)/t-*.sh) \
|
||||||
|
$(srcdir)/test-utils.sh \
|
||||||
|
$(srcdir)/test-lib.sh
|
||||||
|
|
||||||
ifeq ("@UDEV_SYNC@", "yes")
|
ifeq ("@UDEV_SYNC@", "yes")
|
||||||
dm_udev_synchronisation = 1
|
dm_udev_synchronisation = 1
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ("@APPLIB@", "yes")
|
ifeq ("@APPLIB@", "yes")
|
||||||
T += $(srcdir)/lvm2app.sh
|
SCRIPTS += $(srcdir)/lvm2app.sh
|
||||||
all: api/vgtest
|
all: api/vgtest
|
||||||
api/vgtest:
|
api/vgtest:
|
||||||
$(MAKE) -C api vgtest
|
$(MAKE) -C api vgtest
|
||||||
@ -66,9 +68,7 @@ init.sh: $(srcdir)/Makefile.in $(srcdir)/test-utils.sh .bin-dir-stamp bin/not bi
|
|||||||
echo 'export DM_UDEV_SYNCHRONISATION=$(dm_udev_synchronisation)' >> $@-t
|
echo 'export DM_UDEV_SYNCHRONISATION=$(dm_udev_synchronisation)' >> $@-t
|
||||||
chmod a-w $@-t
|
chmod a-w $@-t
|
||||||
mv $@-t $@
|
mv $@-t $@
|
||||||
if test "$(srcdir)" != "."; then cp $(srcdir)/test-utils.sh \
|
test "$(srcdir)" != . && cp $(SCRIPTS) .
|
||||||
$(srcdir)/test-lib.sh \
|
|
||||||
$(T) .; fi
|
|
||||||
|
|
||||||
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
|
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
|
||||||
cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@
|
cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@
|
||||||
@ -95,9 +95,9 @@ lvm-wrapper: Makefile
|
|||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -rf init.sh lvm-wrapper bin .bin-dir-stamp
|
rm -rf init.sh lvm-wrapper bin .bin-dir-stamp
|
||||||
|
test "$(srcdir)" != . && rm -f $(subst $(srcdir)/, ,$(SCRIPTS)) lvm2app.sh
|
||||||
|
|
||||||
distclean: clean
|
distclean: clean
|
||||||
rm -f Makefile
|
rm -f Makefile
|
||||||
|
|
||||||
.PHONY: clean distclean
|
|
||||||
.NOTPARALLEL:
|
.NOTPARALLEL:
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#
|
#
|
||||||
# Copyright (C) 2001-2004 Sistina Software, Inc. All rights reserved.
|
# Copyright (C) 2001-2004 Sistina Software, Inc. All rights reserved.
|
||||||
# Copyright (C) 2004-2007 Red Hat, Inc. All rights reserved.
|
# Copyright (C) 2004-2010 Red Hat, Inc. All rights reserved.
|
||||||
#
|
#
|
||||||
# This file is part of LVM2.
|
# This file is part of LVM2.
|
||||||
#
|
#
|
||||||
@ -64,10 +64,15 @@ SOURCES =\
|
|||||||
vgsplit.c
|
vgsplit.c
|
||||||
|
|
||||||
SOURCES2 =\
|
SOURCES2 =\
|
||||||
dmsetup.c
|
dmsetup.c \
|
||||||
|
lvm.c \
|
||||||
|
lvm2cmd-static.c \
|
||||||
|
lvm2cmd.c \
|
||||||
|
lvmcmdlib.c
|
||||||
|
|
||||||
TARGETS =\
|
TARGETS =\
|
||||||
.commands \
|
.commands \
|
||||||
|
liblvm2cmd.a \
|
||||||
lvm
|
lvm
|
||||||
|
|
||||||
TARGETS_DM = dmsetup
|
TARGETS_DM = dmsetup
|
||||||
@ -87,9 +92,8 @@ endif
|
|||||||
LVMLIBS = $(LVMINTERNAL_LIBS)
|
LVMLIBS = $(LVMINTERNAL_LIBS)
|
||||||
LIB_VERSION = $(LIB_VERSION_LVM)
|
LIB_VERSION = $(LIB_VERSION_LVM)
|
||||||
|
|
||||||
CLEAN_TARGETS = liblvm2cmd.$(LIB_SUFFIX) liblvm2cmd.a liblvm2cmd-static.a lvm lvm.o \
|
CLEAN_TARGETS = liblvm2cmd.$(LIB_SUFFIX) $(TARGETS_DM) \
|
||||||
lvm2cmd.o lvm2cmd-static.o lvm2cmdlib.o lvm.static \
|
liblvm2cmd-static.a dmsetup.static lvm.static
|
||||||
lvmcmdlib.o lvm-static.o dmsetup.o $(TARGETS_DM)
|
|
||||||
|
|
||||||
ifeq ("@CMDLIB@", "yes")
|
ifeq ("@CMDLIB@", "yes")
|
||||||
TARGETS += liblvm2cmd.$(LIB_SUFFIX)
|
TARGETS += liblvm2cmd.$(LIB_SUFFIX)
|
||||||
@ -146,15 +150,16 @@ liblvm2cmd.$(LIB_SUFFIX): liblvm2cmd.a $(LDDEPS)
|
|||||||
$(CC) -E -P $(srcdir)/cmdnames.h 2> /dev/null | \
|
$(CC) -E -P $(srcdir)/cmdnames.h 2> /dev/null | \
|
||||||
egrep -v '^ *(|#.*|dumpconfig|formats|help|pvdata|segtypes|version) *$$' > .commands
|
egrep -v '^ *(|#.*|dumpconfig|formats|help|pvdata|segtypes|version) *$$' > .commands
|
||||||
|
|
||||||
.PHONY: install_cmdlib_dynamic install_cmdlib_static \
|
|
||||||
install_tools_dynamic install_tools_static
|
|
||||||
|
|
||||||
ifneq ("$(CFLOW_CMD)", "")
|
ifneq ("$(CFLOW_CMD)", "")
|
||||||
CFLOW_SOURCES = $(addprefix $(srcdir)/, $(SOURCES))
|
CFLOW_SOURCES = $(addprefix $(srcdir)/, $(SOURCES))
|
||||||
-include $(top_builddir)/libdm/libdevmapper.cflow
|
-include $(top_builddir)/libdm/libdevmapper.cflow
|
||||||
-include $(top_builddir)/lib/liblvm-internal.cflow
|
-include $(top_builddir)/lib/liblvm-internal.cflow
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
.PHONY: install_cmdlib_dynamic install_cmdlib_static \
|
||||||
|
install_tools_dynamic install_tools_static \
|
||||||
|
install_dmsetup_dynamic install_dmsetup_static
|
||||||
|
|
||||||
install_cmdlib_dynamic: liblvm2cmd.$(LIB_SUFFIX)
|
install_cmdlib_dynamic: liblvm2cmd.$(LIB_SUFFIX)
|
||||||
$(INSTALL) -D $(OWNER) $(GROUP) -m 555 $(STRIP) $< \
|
$(INSTALL) -D $(OWNER) $(GROUP) -m 555 $(STRIP) $< \
|
||||||
$(libdir)/liblvm2cmd.$(LIB_SUFFIX).$(LIB_VERSION)
|
$(libdir)/liblvm2cmd.$(LIB_SUFFIX).$(LIB_VERSION)
|
||||||
|
Loading…
Reference in New Issue
Block a user