From 0d02188f6364833fd8858947cd89693857814f8b Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Sat, 24 Mar 2012 15:20:58 +0000 Subject: (dist) auto select right method of generating tarball --- Makefile | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 8013c8d..a4fd9ab 100644 --- a/Makefile +++ b/Makefile @@ -41,7 +41,18 @@ install: cleandist: rm -rf $(NAME)-$(VERSION) ../$(NAME)-$(VERSION).tar* -dist: cleandist git-svn +dist: cleandist + 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; \ + fi; + $(info $(NAME)-$(VERSION).tar.xz is ready) + git-svn: svn export -q -rBASE . $(NAME)-$(VERSION) -- cgit v1.2.1