From f49f242103fcfa9b4ec7e745a25bfb6f46f47f87 Mon Sep 17 00:00:00 2001 From: Christophe Fergeau Date: Wed, 7 Oct 2009 12:11:17 +0000 Subject: add make dist-git --- Makefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Makefile b/Makefile index 3262e63..c2e4847 100644 --- a/Makefile +++ b/Makefile @@ -24,6 +24,8 @@ dist: 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; \ @@ -37,6 +39,9 @@ dist-svn: tar jcf ../$(NAME)-$(VERSION).tar.bz2 $(NAME)-$(VERSION) rm -rf $(NAME)-$(VERSION) +dist-git: + @git archive --prefix=$(NAME)-$(VERSION)/ HEAD | bzip2 >../$(NAME)-$(VERSION).tar.bz2; + clean: @for i in $(SUBDIRS);do make -C $$i clean;done rm -f *~ \#*\# -- cgit v1.2.1