diff options
author | Christophe Fergeau <cfergeau@mandriva.com> | 2009-04-28 13:09:05 +0000 |
---|---|---|
committer | Christophe Fergeau <cfergeau@mandriva.com> | 2009-04-28 13:09:05 +0000 |
commit | edb2b06c6592d109b7ed2d3643f9f8f6ccbb9e90 (patch) | |
tree | 4f42ac8406966afcab14ec110fad2d9131f42e05 | |
parent | cf4419ef4e654952f09bbb8bf31b4247ece0f9ec (diff) | |
download | draklive-edb2b06c6592d109b7ed2d3643f9f8f6ccbb9e90.tar draklive-edb2b06c6592d109b7ed2d3643f9f8f6ccbb9e90.tar.gz draklive-edb2b06c6592d109b7ed2d3643f9f8f6ccbb9e90.tar.bz2 draklive-edb2b06c6592d109b7ed2d3643f9f8f6ccbb9e90.tar.xz draklive-edb2b06c6592d109b7ed2d3643f9f8f6ccbb9e90.zip |
Add make dist target
-rw-r--r-- | Makefile | 22 |
1 files changed, 22 insertions, 0 deletions
@@ -7,6 +7,28 @@ check: clean: find -name '*~' -exec rm {} \; +dist: dis +dis: clean + rm -f ../$(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.lzma is ready) + +dist-svn: + rm -rf $(NAME)-$(VERSION) + svn export -q -rBASE . $(NAME)-$(VERSION) + tar cfY ../$(NAME)-$(VERSION).tar.lzma $(NAME)-$(VERSION) + rm -rf $(NAME)-$(VERSION) + +dist-git: + @git archive --prefix=$(NAME)-$(VERSION)/ HEAD | xz >../$(NAME)-$(VERSION).tar.lzma; + .PHONY: ChangeLog log changelog log: ChangeLog |