Skip to contentSkip to conversation

master - makefile: cleanup after build

PATCH Zdenek Kabelac 1 participant 1 message May 11, 2015 Kbuild

lore
Share & tools
lore
#0 lore raw
Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=62e7a6ca1a3479017b026c380a97c9f826b087da
Commit:        62e7a6ca1a3479017b026c380a97c9f826b087da
Parent:        fabc19b73cb08f1a80bbf558b858110520ee8b53
Author:        Zdenek Kabelac <[email protected]>
AuthorDate:    Mon May 11 15:52:11 2015 +0200
Committer:     Zdenek Kabelac <[email protected]>
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(-)
Makefile.in +3 -0
index 30c2c89..ac806bb 100644
@@ -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";\