diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2008-07-14 16:23:08 -0300 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2008-07-14 16:23:08 -0300 |
commit | 736e06faea9f116542fab4db68e3098853f50525 (patch) | |
tree | 31844f8f2705b9e6399d3284ec7bbec930f534e1 /Makefile | |
parent | c146a164a3f3a9a108d85adf8897f573c94d720e (diff) | |
download | python-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-- | Makefile | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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 |