From 04f4e1bf7df81a0ddf43ab608a2030ca20bfce37 Mon Sep 17 00:00:00 2001 From: Arnaldo Carvalho de Melo Date: Mon, 30 Jun 2008 17:39:15 -0300 Subject: Makefile: Add bz2 and rpm targets To build an rpm now use: make rpm Signed-off-by: Arnaldo Carvalho de Melo --- Makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Makefile b/Makefile index 2f4c484..80282a6 100644 --- a/Makefile +++ b/Makefile @@ -39,3 +39,9 @@ local: @cp /tmp/${PKGNAME}-$(VERSION)/dist/${PKGNAME}-$(VERSION).tar.gz . @rm -rf /tmp/${PKGNAME}-$(VERSION) @echo "The archive is in ${PKGNAME}-$(VERSION).tar.gz" + +bz2: + git archive --format=tar --prefix=${PKGNAME}-$(VERSION)/ HEAD | bzip2 -9 > rpm/SOURCES/${PKGNAME}-$(VERSION).tar.bz2 + +rpm: bz2 + rpmbuild -ba --define "_topdir $(PWD)/rpm" rpm/SPECS/${PKGNAME}.spec -- cgit