summaryrefslogtreecommitdiffstats
path: root/perl-install/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install/Makefile')
-rw-r--r--perl-install/Makefile14
1 files changed, 13 insertions, 1 deletions
diff --git a/perl-install/Makefile b/perl-install/Makefile
index 6ea394882..ab86ab977 100644
--- a/perl-install/Makefile
+++ b/perl-install/Makefile
@@ -68,8 +68,20 @@ dist-svn: localcopy
tar cfa $(PACKAGE)-$(PKGVERSION).tar.xz $(PACKAGE)-$(PKGVERSION)
rm -rf $(PACKAGE)-$(PKGVERSION)
+dist-git:
+ @cd ..; git archive --prefix=$(PACKAGE)-$(PKGVERSION)/ HEAD perl-install/{[^i]*,int*} $(OTHERS) kernel/list_modules.pm Makefile.config | xz >$(PACKAGE)-$(PKGVERSION).tar.xz;
+
tar:
- @make dist-svn
+ rm -rf $(PACKAGE)*.tar* $(PACKAGE)-$(PKGVERSION)
+ 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 $(PACKAGE)-$(PKGVERSION).tar.xz is ready)
# rules to build a distributable rpm