diff options
author | David Howells <dhowells@redhat.com> | 2013-08-29 22:18:34 +0100 |
---|---|---|
committer | David Howells <dhowells@redhat.com> | 2013-08-29 22:20:16 +0100 |
commit | c7696a882853d6d18af5e3aef237a2285cc6b2c3 (patch) | |
tree | 298c85c71b70dc0a01ee169afaf512cd4f293192 /Makefile | |
parent | 480fc94ab9b7669f966c981556dcbc83c338d1a6 (diff) | |
download | keyutils-c7696a882853d6d18af5e3aef237a2285cc6b2c3.tar.gz |
Compress the tarball built by the Makefile
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 11 |
1 files changed, 7 insertions, 4 deletions
@@ -27,7 +27,8 @@ MAJOR := $(word 3,$(vermajor)) MINOR := $(word 3,$(verminor)) VERSION := $(MAJOR).$(MINOR) -TARBALL := keyutils-$(VERSION).tar.bz2 +TARBALL := keyutils-$(VERSION).tar +ZTARBALL := $(TARBALL).bz2 ############################################################################### # @@ -218,10 +219,11 @@ distclean: clean # Generate a tarball # ############################################################################### -$(TARBALL): +$(ZTARBALL): git archive --prefix=keyutils-$(VERSION)/ --format tar -o $(TARBALL) HEAD + bzip2 -9 $(TARBALL) -tarball: $(TARBALL) +tarball: $(ZTARBALL) ############################################################################### # @@ -254,7 +256,8 @@ rpm: chmod ug-s rpmbuild mkdir -p rpmbuild/{SPECS,SOURCES,BUILD,BUILDROOT,RPMS,SRPMS} git archive --prefix=keyutils-$(VERSION)/ --format tar -o $(SRCBALL) HEAD - rpmbuild -ts $(SRCBALL) --define "_srcrpmdir rpmbuild/SRPMS" $(RPMFLAGS) + bzip2 -9 $(SRCBALL) + rpmbuild -ts $(SRCBALL).bz2 --define "_srcrpmdir rpmbuild/SRPMS" $(RPMFLAGS) rpmbuild --rebuild $(SRPM) $(RPMBUILDDIRS) $(RPMFLAGS) rpmlint: rpm |