summaryrefslogtreecommitdiffstats
path: root/make.tmpl.in
diff options
context:
space:
mode:
authorZdenek Kabelac <zkabelac@redhat.com>2010-04-06 09:54:11 +0000
committerZdenek Kabelac <zkabelac@redhat.com>2010-04-06 09:54:11 +0000
commite83968fa286bec0972a810271053dd5a08ba2a0b (patch)
tree85f4f2f15d21d64c42d7a76a904f4986f7ec2c0b /make.tmpl.in
parent6a27e819d751ccfbc01350d60f1daeaac9f0918d (diff)
downloadlvm2-e83968fa286bec0972a810271053dd5a08ba2a0b.tar.gz
lvm2-e83968fa286bec0972a810271053dd5a08ba2a0b.tar.xz
lvm2-e83968fa286bec0972a810271053dd5a08ba2a0b.zip
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*.
Diffstat (limited to 'make.tmpl.in')
-rw-r--r--make.tmpl.in7
1 files changed, 2 insertions, 5 deletions
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:"; \