From d4a1d4a318a6aa5100b13698da7e3c9f02cd1616 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Fri, 23 Mar 2012 19:42:57 +0000 Subject: (dist-git) enable to generate tarball from GIT --- Makefile | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index cc121f9..ab0f956 100644 --- a/Makefile +++ b/Makefile @@ -43,6 +43,8 @@ dist: clean rm -rf ../$(NAME)-$(VERSION).tar* @if [ -e ".svn" ]; then \ $(MAKE) dist-svn; \ + elif [ -e ".git" ]; then \ + $(MAKE) dist-git; \ else \ echo "Unknown SCM (not SVN nor GIT)";\ exit 1; \ @@ -53,3 +55,6 @@ dist-svn: svn export -q -rBASE . $(NAME)-$(VERSION) tar cfj $(NAME)-$(VERSION).tar.bz2 $(NAME)-$(PERL_CHECKER_VERSION) rm -rf $(NAME)-$(VERSION) + +dist-git: + @git archive --prefix=$(NAME)-$(VERSION)/ HEAD | xz >../$(NAME)-$(VERSION).tar.xz; -- cgit v1.2.1