summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2008-07-14 16:23:08 -0300
committerArnaldo Carvalho de Melo <acme@redhat.com>2008-07-14 16:23:08 -0300
commit736e06faea9f116542fab4db68e3098853f50525 (patch)
tree31844f8f2705b9e6399d3284ec7bbec930f534e1 /Makefile
parentc146a164a3f3a9a108d85adf8897f573c94d720e (diff)
downloadpython-ethtool-736e06faea9f116542fab4db68e3098853f50525.tar.gz
python-ethtool-736e06faea9f116542fab4db68e3098853f50525.tar.xz
python-ethtool-736e06faea9f116542fab4db68e3098853f50525.zip
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>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 8 insertions, 0 deletions
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