debian: fix make dist for packaging.
authorGwenole Beauchesne <gwenole.beauchesne@intel.com>
Wed, 17 Oct 2012 13:49:23 +0000 (15:49 +0200)
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>
Wed, 17 Oct 2012 13:49:23 +0000 (15:49 +0200)
bzip2 tarballs are now used, so update the deb.upstream dependencies
to include dist-bzip2 instead of plain old dist, and use the correct
tar extract options to handle that format.

Makefile.am

index 08a5e2a..70cb5ee 100644 (file)
@@ -15,11 +15,11 @@ DEB_BUILDDIR = debian.build
 deb:
        dpkg-buildpackage -rfakeroot -uc -us
 
-deb.upstream: dist
+deb.upstream: dist-bzip2
        -mkdir -p $(DEB_BUILDDIR)
        cd $(DEB_BUILDDIR)                              && \
        rm -rf $(PACKAGE)-$(VERSION)                    && \
-       tar zxvf ../$(PACKAGE)-$(VERSION).tar.gz        && \
+       tar jxvf ../$(PACKAGE)-$(VERSION).tar.bz2       && \
        cd $(PACKAGE)-$(VERSION)                        && \
        $(LN_S) debian.upstream debian                  && \
        $(MAKE) deb -f Makefile.am