From 5b7b61ee00175322fb9a69daa766dde615b6b331 Mon Sep 17 00:00:00 2001 From: Christophe Fergeau Date: Fri, 3 Apr 2009 17:46:50 +0000 Subject: Get make dist to work for both svn and git --- Makefile | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index a6f2dae..8f785ef 100644 --- a/Makefile +++ b/Makefile @@ -61,7 +61,16 @@ install: build dist: dis dis ../$(NAME)-$(VERSION).tar.bz2: tar -tar: dist-svn +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.bz2 is ready) dist-svn: svn export -q -rBASE . $(NAME)-$(VERSION) -- cgit v1.2.1