From e83968fa286bec0972a810271053dd5a08ba2a0b Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Tue, 6 Apr 2010 09:54:11 +0000 Subject: 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*. --- make.tmpl.in | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'make.tmpl.in') diff --git a/make.tmpl.in b/make.tmpl.in index 8b93bb13..b42358a5 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:"; \ -- cgit