From e693cf5e152ffa5dd3917a05856e9f10000eb37e Mon Sep 17 00:00:00 2001 From: Jozsef Kadlecsik Date: Thu, 10 May 2012 13:31:53 +0200 Subject: Add tarball target to Makefile --- Makefile.am | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'Makefile.am') 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 -- cgit v1.2.3