Skip to content

Commit 04f4e1b

Browse files
committed
Makefile: Add bz2 and rpm targets
To build an rpm now use: make rpm Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
1 parent 55c33d4 commit 04f4e1b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Makefile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,9 @@ local:
3939
@cp /tmp/${PKGNAME}-$(VERSION)/dist/${PKGNAME}-$(VERSION).tar.gz .
4040
@rm -rf /tmp/${PKGNAME}-$(VERSION)
4141
@echo "The archive is in ${PKGNAME}-$(VERSION).tar.gz"
42+
43+
bz2:
44+
git archive --format=tar --prefix=${PKGNAME}-$(VERSION)/ HEAD | bzip2 -9 > rpm/SOURCES/${PKGNAME}-$(VERSION).tar.bz2
45+
46+
rpm: bz2
47+
rpmbuild -ba --define "_topdir $(PWD)/rpm" rpm/SPECS/${PKGNAME}.spec

0 commit comments

Comments
 (0)