diff options
author | Christophe Fergeau <cfergeau@mandriva.com> | 2009-10-07 12:11:17 +0000 |
---|---|---|
committer | Christophe Fergeau <cfergeau@mandriva.com> | 2009-10-07 12:11:17 +0000 |
commit | f49f242103fcfa9b4ec7e745a25bfb6f46f47f87 (patch) | |
tree | 7108df0db726f760402424ee308fc6903eddba87 | |
parent | 63837c9165089c9b833e985f95fa71664e4fda33 (diff) | |
download | bootsplash-f49f242103fcfa9b4ec7e745a25bfb6f46f47f87.tar bootsplash-f49f242103fcfa9b4ec7e745a25bfb6f46f47f87.tar.gz bootsplash-f49f242103fcfa9b4ec7e745a25bfb6f46f47f87.tar.bz2 bootsplash-f49f242103fcfa9b4ec7e745a25bfb6f46f47f87.tar.xz bootsplash-f49f242103fcfa9b4ec7e745a25bfb6f46f47f87.zip |
add make dist-git
-rw-r--r-- | Makefile | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -24,6 +24,8 @@ dist: 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; \ @@ -37,6 +39,9 @@ dist-svn: tar jcf ../$(NAME)-$(VERSION).tar.bz2 $(NAME)-$(VERSION) rm -rf $(NAME)-$(VERSION) +dist-git: + @git archive --prefix=$(NAME)-$(VERSION)/ HEAD | bzip2 >../$(NAME)-$(VERSION).tar.bz2; + clean: @for i in $(SUBDIRS);do make -C $$i clean;done rm -f *~ \#*\# |