summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristophe Fergeau <cfergeau@mandriva.com>2009-04-03 17:46:50 +0000
committerChristophe Fergeau <cfergeau@mandriva.com>2009-04-03 17:46:50 +0000
commit5b7b61ee00175322fb9a69daa766dde615b6b331 (patch)
treea1004b18d9accf7aadbb33cf08361d0634f049e6
parent60072c1f9d2bd8f7609a9c5ac6fc58df20dcad2d (diff)
downloadldetect-5b7b61ee00175322fb9a69daa766dde615b6b331.tar
ldetect-5b7b61ee00175322fb9a69daa766dde615b6b331.tar.gz
ldetect-5b7b61ee00175322fb9a69daa766dde615b6b331.tar.bz2
ldetect-5b7b61ee00175322fb9a69daa766dde615b6b331.tar.xz
ldetect-5b7b61ee00175322fb9a69daa766dde615b6b331.zip
Get make dist to work for both svn and git
-rw-r--r--Makefile11
1 files changed, 10 insertions, 1 deletions
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)