From: Harald Hoyer Date: Thu, 5 Mar 2009 09:48:18 +0000 (+0100) Subject: added tar.bz2 target for the rpm and archive target X-Git-Tag: 0.1~379 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6b2a2be3ba0ebee65f740c58a4090bf4fcd939f6;p=thirdparty%2Fdracut.git added tar.bz2 target for the rpm and archive target --- diff --git a/Makefile b/Makefile index c4f525ba6..8129b2c1d 100644 --- a/Makefile +++ b/Makefile @@ -20,10 +20,12 @@ clean: rm -f *~ rm -f modules.d/99base/switch_root -archive: +archive: dracut-$(VERSION)-$(GITVERSION).tar.bz2 + +dracut-$(VERSION)-$(GITVERSION).tar.bz2: git archive --format=tar HEAD --prefix=dracut-$(VERSION)-$(GITVERSION)/ |bzip2 > dracut-$(VERSION)-$(GITVERSION).tar.bz2 -rpm: +rpm: dracut-$(VERSION)-$(GITVERSION).tar.bz2 rpmbuild --define "_sourcedir $$PWD" --define "_specdir $$PWD" --define "_builddir $$PWD" --define "_srcrpmdir $$PWD" --define "_rpmdir $$PWD" --define "gittag $(GITVERSION)" -ba dracut.spec testimage: