From 736e06faea9f116542fab4db68e3098853f50525 Mon Sep 17 00:00:00 2001 From: Arnaldo Carvalho de Melo Date: Mon, 14 Jul 2008 16:23:08 -0300 Subject: Makefile: bz2dev and rpmdev targets So that we can build a rpm with the current working files. Signed-off-by: Arnaldo Carvalho de Melo --- Makefile | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Makefile b/Makefile index 387b591..333394d 100644 --- a/Makefile +++ b/Makefile @@ -46,3 +46,11 @@ bz2: rpm: bz2 rpmbuild -ba --define "_topdir $(PWD)/rpm" rpm/SPECS/${PKGNAME}.spec + +bz2dev: + @mkdir -p /tmp/${PKGNAME}-$(VERSION) + @tar cf - `cat MANIFEST` | (cd /tmp/${PKGNAME}-$(VERSION) ; tar xf -) + @(cd /tmp; tar cf - ${PKGNAME}-$(VERSION)) | bzip2 -9 > rpm/SOURCES/${PKGNAME}-$(VERSION).tar.bz2 + +rpmdev: bz2dev + rpmbuild -ba --define "_topdir $(PWD)/rpm" rpm/SPECS/${PKGNAME}.spec -- cgit