[lvm-devel] master - makefile: cleanup after build

Zdenek Kabelac zkabelac at fedoraproject.org
Mon May 11 13:54:07 UTC 2015


Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=62e7a6ca1a3479017b026c380a97c9f826b087da
Commit:        62e7a6ca1a3479017b026c380a97c9f826b087da
Parent:        fabc19b73cb08f1a80bbf558b858110520ee8b53
Author:        Zdenek Kabelac <zkabelac at redhat.com>
AuthorDate:    Mon May 11 15:52:11 2015 +0200
Committer:     Zdenek Kabelac <zkabelac at redhat.com>
CommitterDate: Mon May 11 15:53:46 2015 +0200

makefile: cleanup after build

Provide cleaning rules for build dir and release tgz.
---
 Makefile.in |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/Makefile.in b/Makefile.in
index 30c2c89..ac806bb 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -49,6 +49,8 @@ tools.distclean: test.distclean
 endif
 DISTCLEAN_DIRS += lcov_reports*
 DISTCLEAN_TARGETS += config.cache config.log config.status make.tmpl
+clean:
+	$(RM) -r build
 
 include make.tmpl
 
@@ -100,6 +102,7 @@ check check_system check_cluster check_local check_lvmetad unit: all
 conf.generate: tools
 
 VER = LVM2. at LVM_MAJOR@. at LVM_MINOR@. at LVM_PATCHLEVEL@
+CLEAN_TARGETS += $(VER).tgz
 
 dist:
 	@echo "Generating $(VER).tgz";\




More information about the lvm-devel mailing list