diff options
author | Thierry Vignaud <tv@mageia.org> | 2012-03-24 15:20:58 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mageia.org> | 2012-03-24 15:20:58 +0000 |
commit | 0d02188f6364833fd8858947cd89693857814f8b (patch) | |
tree | 5baa191666e872d6f99e51f95139c09d6e913f52 /Makefile | |
parent | a7202528f6c2ccad36a831ddf8bec5ffbd8ec486 (diff) | |
download | drakx-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
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 13 |
1 files changed, 12 insertions, 1 deletions
@@ -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) |