]> granicus.if.org Git - ipset/commitdiff
Add tarball target to Makefile
authorJozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Thu, 10 May 2012 11:31:53 +0000 (13:31 +0200)
committerJozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Thu, 10 May 2012 11:31:53 +0000 (13:31 +0200)
Makefile.am

index 554a76aaf0ab590ff39fdae21a46f545c46ec0de..42b9550e112d026dd821a6b7b95a85623787660e 100644 (file)
@@ -75,6 +75,13 @@ tidy: distclean modules_clean
        rm -rf lib/ipset_settype_check lib/types_init.c
        find . -name '*~' -delete
 
-.PHONY: modules modules_instal modules_clean update_includes tests
+tarball:
+       rm -Rf /tmp/ipset-${PACKAGE_VERSION};
+       pushd ${top_srcdir} && git archive --prefix=ipset-${PACKAGE_VERSION}/ HEAD | tar -C /tmp -x && popd;
+       pushd /tmp/ipset-${PACKAGE_VERSION} && ./autogen.sh && popd;
+       tar -C /tmp -cjf ipset-${PACKAGE_VERSION}.tar.bz2 --owner=root --group=root ipset-${PACKAGE_VERSION}/;
+       rm -Rf /tmp/ipset-${PACKAGE_VERSION};
+
+.PHONY: modules modules_instal modules_clean update_includes tests tarball
 
 DISTCHECK_CONFIGURE_FLAGS = --with-kmod=no