diff options
| author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2008-06-30 17:39:15 -0300 |
|---|---|---|
| committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2008-06-30 17:39:15 -0300 |
| commit | 04f4e1bf7df81a0ddf43ab608a2030ca20bfce37 (patch) | |
| tree | 8e7bc2ee2ac3e35914d712903dd0da8891d9be3f | |
| parent | 55c33d46d3b2e81d473abd1aff1f540876ff88a7 (diff) | |
| download | python-ethtool-04f4e1bf7df81a0ddf43ab608a2030ca20bfce37.tar.gz python-ethtool-04f4e1bf7df81a0ddf43ab608a2030ca20bfce37.tar.xz python-ethtool-04f4e1bf7df81a0ddf43ab608a2030ca20bfce37.zip | |
Makefile: Add bz2 and rpm targets
To build an rpm now use:
make rpm
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
| -rw-r--r-- | Makefile | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -39,3 +39,9 @@ local: @cp /tmp/${PKGNAME}-$(VERSION)/dist/${PKGNAME}-$(VERSION).tar.gz . @rm -rf /tmp/${PKGNAME}-$(VERSION) @echo "The archive is in ${PKGNAME}-$(VERSION).tar.gz" + +bz2: + git archive --format=tar --prefix=${PKGNAME}-$(VERSION)/ HEAD | bzip2 -9 > rpm/SOURCES/${PKGNAME}-$(VERSION).tar.bz2 + +rpm: bz2 + rpmbuild -ba --define "_topdir $(PWD)/rpm" rpm/SPECS/${PKGNAME}.spec |
