summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2012-03-24 15:20:58 +0000
committerThierry Vignaud <tv@mageia.org>2012-03-24 15:20:58 +0000
commit0d02188f6364833fd8858947cd89693857814f8b (patch)
tree5baa191666e872d6f99e51f95139c09d6e913f52
parenta7202528f6c2ccad36a831ddf8bec5ffbd8ec486 (diff)
downloaddrakx-net-0d02188f6364833fd8858947cd89693857814f8b.tar
drakx-net-0d02188f6364833fd8858947cd89693857814f8b.tar.gz
drakx-net-0d02188f6364833fd8858947cd89693857814f8b.tar.bz2
drakx-net-0d02188f6364833fd8858947cd89693857814f8b.tar.xz
drakx-net-0d02188f6364833fd8858947cd89693857814f8b.zip
(dist) auto select right method of generating tarball
-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)