Skip to content

Commit 736e06f

Browse files
committed
Makefile: bz2dev and rpmdev targets
So that we can build a rpm with the current working files. Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
1 parent c146a16 commit 736e06f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Makefile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,3 +46,11 @@ bz2:
4646

4747
rpm: bz2
4848
rpmbuild -ba --define "_topdir $(PWD)/rpm" rpm/SPECS/${PKGNAME}.spec
49+
50+
bz2dev:
51+
@mkdir -p /tmp/${PKGNAME}-$(VERSION)
52+
@tar cf - `cat MANIFEST` | (cd /tmp/${PKGNAME}-$(VERSION) ; tar xf -)
53+
@(cd /tmp; tar cf - ${PKGNAME}-$(VERSION)) | bzip2 -9 > rpm/SOURCES/${PKGNAME}-$(VERSION).tar.bz2
54+
55+
rpmdev: bz2dev
56+
rpmbuild -ba --define "_topdir $(PWD)/rpm" rpm/SPECS/${PKGNAME}.spec

0 commit comments

Comments
 (0)