summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 12 insertions, 1 deletions
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)