summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile12
1 files changed, 11 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index d70ad55..cc121f9 100644
--- a/Makefile
+++ b/Makefile
@@ -40,6 +40,16 @@ commit:
tar: dist
dist: clean
+ rm -rf ../$(NAME)-$(VERSION).tar*
+ @if [ -e ".svn" ]; then \
+ $(MAKE) dist-svn; \
+ else \
+ echo "Unknown SCM (not SVN nor GIT)";\
+ exit 1; \
+ fi;
+ $(info $(NAME)-$(VERSION).tar.xz is ready)
+
+dist-svn:
svn export -q -rBASE . $(NAME)-$(VERSION)
- tar cfj $(NAME)-$(VERSION).tar.bz2 $(NAME)-$(VERSION)
+ tar cfj $(NAME)-$(VERSION).tar.bz2 $(NAME)-$(PERL_CHECKER_VERSION)
rm -rf $(NAME)-$(VERSION)