summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorHarald Hoyer <harald@redhat.com>2009-07-17 15:59:36 +0200
committerHarald Hoyer <harald@redhat.com>2009-07-17 16:00:20 +0200
commitb54cac21c16f22c5d9609e378a38c0645296051a (patch)
tree64c7ea8481f3ea2e35cd8f9cf53478a5cd77feb0 /Makefile
parentacff0cc10c1fba3e9755f943d4ec630b31884e68 (diff)
Makefile: make clean before rpm0.5
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 2a54123..2b1d003 100644
--- a/Makefile
+++ b/Makefile
@@ -34,6 +34,7 @@ clean:
rm -f *~
rm -f modules.d/99base/switch_root
rm -f test-*.img
+ rm -f dracut-*.rpm dracut-*.tar.bz2
make -C test clean
archive: dracut-$(VERSION)-$(GITVERSION).tar.bz2
@@ -47,7 +48,7 @@ dracut-$(VERSION)-$(GITVERSION).tar.bz2:
git archive --format=tar HEAD --prefix=dracut-$(VERSION)-$(GITVERSION)/ |bzip2 > dracut-$(VERSION)-$(GITVERSION).tar.bz2
-rpm: dracut-$(VERSION).tar.bz2
+rpm: clean dracut-$(VERSION).tar.bz2
rpmbuild --define "_topdir $$PWD" --define "_sourcedir $$PWD" --define "_specdir $$PWD" --define "_srcrpmdir $$PWD" --define "_rpmdir $$PWD" -ba dracut.spec
rm -fr BUILD BUILDROOT