From: Zdenek Kabelac Date: Tue, 6 Apr 2010 09:54:11 +0000 (+0000) Subject: Distcleanup config files only in toplevel directory. X-Git-Tag: old-v2_02_63~79 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=92e4442d4a3c1418018eefe970c451aea609f6c0;p=lvm2.git 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*. --- diff --git a/Makefile.in b/Makefile.in index f8688313d..e0158cb9e 100644 --- a/Makefile.in +++ b/Makefile.in @@ -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 diff --git a/make.tmpl.in b/make.tmpl.in index 8b93bb137..b42358a51 100644 --- a/make.tmpl.in +++ b/make.tmpl.in @@ -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:"; \