mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
Distcleanup config files only in toplevel directory.
Do not execute 'rm -r' with empty $(DISTCLEAN_DIRS). lvm-version.h is already cleaned with subtarget distcleaning. Always distcleanup lcov_reports*.
This commit is contained in:
parent
6a27e819d7
commit
e83968fa28
@ -37,8 +37,9 @@ ifeq ($(MAKECMDGOALS),distclean)
|
||||
SUBDIRS = doc include man scripts \
|
||||
lib tools daemons libdm \
|
||||
udev po liblvm test/api test
|
||||
DISTCLEAN_DIRS += lcov_reports*
|
||||
endif
|
||||
DISTCLEAN_DIRS += lcov_reports*
|
||||
DISTCLEAN_TARGETS += config.cache config.log config.status make.tmpl
|
||||
|
||||
include make.tmpl
|
||||
|
||||
|
@ -306,11 +306,8 @@ clean: $(SUBDIRS.clean)
|
||||
$(SOURCES2:%.c=%.o) $(SOURCES2:%.c=%.d) $(SOURCES2:%.c=%.gcno) $(SOURCES2:%.c=%.gcda)
|
||||
|
||||
distclean: clean $(SUBDIRS.distclean)
|
||||
$(RM) -r $(DISTCLEAN_DIRS)
|
||||
$(RM) $(DISTCLEAN_TARGETS) \
|
||||
config.cache config.log config.status \
|
||||
Makefile make.tmpl core \
|
||||
lvm-version.h
|
||||
test -z "$(DISTCLEAN_DIRS)" || $(RM) -r $(DISTCLEAN_DIRS)
|
||||
$(RM) $(DISTCLEAN_TARGETS) Makefile core
|
||||
|
||||
.export.sym: .exported_symbols
|
||||
set -e; (echo "Base {"; echo " global:"; \
|
||||
|
Loading…
Reference in New Issue
Block a user