From: Jozsef Kadlecsik Date: Thu, 10 May 2012 11:31:53 +0000 (+0200) Subject: Add tarball target to Makefile X-Git-Tag: v6.12.1~3 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e693cf5e152ffa5dd3917a05856e9f10000eb37e;p=ipset Add tarball target to Makefile --- diff --git a/Makefile.am b/Makefile.am index 554a76a..42b9550 100644 --- a/Makefile.am +++ b/Makefile.am @@ -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