From 78efc270bc489441e949b5c2c486486b42439a0e Mon Sep 17 00:00:00 2001 From: Antonio Terceiro Date: Thu, 27 Nov 2014 18:30:00 -0200 Subject: [PATCH] Makefile: add dist target --- .gitignore | 1 + Makefile | 9 ++++++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 0ee8528..c1da5bc 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ /vendor/bundle /.bundle +/*.tar.gz diff --git a/Makefile b/Makefile index be66566..aaf3eec 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,5 @@ +VERSION = 7.5 +TARBALL = gitlab-deps-$(VERSION).tar.gz WGET = wget GITLAB_BRANCH = 7-5-stable BUNDLE_OPTS = --verbose --without='development test' @@ -5,6 +7,11 @@ BUNDLE_OPTS = --verbose --without='development test' all: bundle install $(BUNDLE_OPTS) --local --deployment +dist: $(TARBALL) + +$(TARBALL): + (git archive --prefix=gitlab-deps-$(VERSION)/ HEAD | gzip > $@) || ($(RM) $@; false) + install: all mkdir -p $(DESTDIR)$(PREFIX)/lib/gitlab/vendor $(RM) -r $(DESTDIR)$(PREFIX)/lib/gitlab/vendor/bundle @@ -22,4 +29,4 @@ update-gemfiles: git commit Gemfile* -m 'update Gemfile*' clean: - $(RM) -r .bundle/ vendor/bundle/ + $(RM) -r .bundle/ vendor/bundle/ $(TARBALL) -- libgit2 0.21.2