Do not execute 'rm -r' with empty $(DISTCLEAN_DIRS).
lvm-version.h is already cleaned with subtarget distcleaning.
Always distcleanup lcov_reports*.
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
$(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:"; \