diff options
author | Christophe Fergeau <cfergeau@mandriva.com> | 2009-04-03 17:46:50 +0000 |
---|---|---|
committer | Christophe Fergeau <cfergeau@mandriva.com> | 2009-04-03 17:46:50 +0000 |
commit | 5b7b61ee00175322fb9a69daa766dde615b6b331 (patch) | |
tree | a1004b18d9accf7aadbb33cf08361d0634f049e6 /Makefile | |
parent | 60072c1f9d2bd8f7609a9c5ac6fc58df20dcad2d (diff) | |
download | ldetect-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
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -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) |