mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
distclean fixes
Move daemons/ and lib/ subtargets to their Makefiles so we don't get double cleanup error during execution of distclean target. Instead of duplicating clean target inside distclean target, just use it as a subtarget and avoid add duplicating code.
This commit is contained in:
parent
08db4eeb51
commit
1a91d0914e
11
Makefile.in
11
Makefile.in
@ -34,16 +34,7 @@ ifeq ("@APPLIB@", "yes")
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(MAKECMDGOALS),distclean)
|
ifeq ($(MAKECMDGOALS),distclean)
|
||||||
SUBDIRS += daemons/clvmd \
|
SUBDIRS += liblvm \
|
||||||
daemons/cmirrord \
|
|
||||||
daemons/dmeventd/plugins \
|
|
||||||
daemons/dmeventd \
|
|
||||||
lib/format1 \
|
|
||||||
lib/format_pool \
|
|
||||||
lib/locking \
|
|
||||||
lib/mirror \
|
|
||||||
lib/snapshot \
|
|
||||||
liblvm \
|
|
||||||
udev \
|
udev \
|
||||||
test/api \
|
test/api \
|
||||||
test \
|
test \
|
||||||
|
@ -30,6 +30,10 @@ ifeq ("@BUILD_DMEVENTD@", "yes")
|
|||||||
SUBDIRS += dmeventd
|
SUBDIRS += dmeventd
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifeq ($(MAKECMDGOALS),distclean)
|
||||||
|
SUBDIRS = clvmd cmirrord dmeventd
|
||||||
|
endif
|
||||||
|
|
||||||
include $(top_builddir)/make.tmpl
|
include $(top_builddir)/make.tmpl
|
||||||
|
|
||||||
ifeq ("@BUILD_DMEVENTD@", "yes")
|
ifeq ("@BUILD_DMEVENTD@", "yes")
|
||||||
|
@ -152,6 +152,15 @@ LIB_STATIC = $(LIB_NAME).a
|
|||||||
|
|
||||||
CLEAN_TARGETS += $(LIB_NAME).cflow
|
CLEAN_TARGETS += $(LIB_NAME).cflow
|
||||||
|
|
||||||
|
ifeq ($(MAKECMDGOALS),distclean)
|
||||||
|
SUBDIRS =\
|
||||||
|
format1 \
|
||||||
|
format_pool \
|
||||||
|
snapshot \
|
||||||
|
mirror \
|
||||||
|
locking
|
||||||
|
endif
|
||||||
|
|
||||||
include $(top_builddir)/make.tmpl
|
include $(top_builddir)/make.tmpl
|
||||||
|
|
||||||
$(SUBDIRS): $(LIB_STATIC)
|
$(SUBDIRS): $(LIB_STATIC)
|
||||||
|
@ -257,12 +257,9 @@ clean: $(SUBDIRS.clean)
|
|||||||
$(SOURCES2:%.c=%.d) $(SOURCES:%.c=%.pot) $(SOURCES:%.c=%.gcno) \
|
$(SOURCES2:%.c=%.d) $(SOURCES:%.c=%.pot) $(SOURCES:%.c=%.gcno) \
|
||||||
$(SOURCES:%.c=%.gcda) $(LDDEPS)
|
$(SOURCES:%.c=%.gcda) $(LDDEPS)
|
||||||
|
|
||||||
distclean: $(SUBDIRS.distclean)
|
distclean: clean $(SUBDIRS.distclean)
|
||||||
$(RM) -rf $(DISTCLEAN_DIRS)
|
$(RM) -rf $(DISTCLEAN_DIRS)
|
||||||
$(RM) $(DISTCLEAN_TARGETS) \
|
$(RM) $(DISTCLEAN_TARGETS) \
|
||||||
$(OBJECTS) $(TARGETS) $(CLEAN_TARGETS) $(SOURCES:%.c=%.d) \
|
|
||||||
$(SOURCES2:%.c=%.d) $(SOURCES:%.c=%.pot) $(SOURCES:%.c=%.gcno) \
|
|
||||||
$(SOURCES:%.c=%.gcda) $(LDDEPS) \
|
|
||||||
config.cache config.log config.status \
|
config.cache config.log config.status \
|
||||||
Makefile make.tmpl core \
|
Makefile make.tmpl core \
|
||||||
lvm-version.h
|
lvm-version.h
|
||||||
|
Loading…
Reference in New Issue
Block a user