From a8b6334ca6ad2983c61aa2d45560caa8d826a8f9 Mon Sep 17 00:00:00 2001 From: Antonio Terceiro Date: Thu, 27 Nov 2014 18:22:31 -0200 Subject: [PATCH] update Makefile --- Makefile | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 60b481e..be66566 100644 --- a/Makefile +++ b/Makefile @@ -1,11 +1,25 @@ WGET = wget GITLAB_BRANCH = 7-5-stable +BUNDLE_OPTS = --verbose --without='development test' all: - bundle install --verbose --path vendor/bundle + bundle install $(BUNDLE_OPTS) --local --deployment -update: +install: all + mkdir -p $(DESTDIR)$(PREFIX)/lib/gitlab/vendor + $(RM) -r $(DESTDIR)$(PREFIX)/lib/gitlab/vendor/bundle + cp -r vendor/bundle $(DESTDIR)$(PREFIX)/lib/gitlab/vendor/bundle + +update: clean bundle + +bundle: + bundle install $(BUNDLE_OPTS) --path vendor/bundle + +update-gemfiles: $(WGET) -O Gemfile https://gitlab.com/gitlab-org/gitlab-ce/raw/$(GITLAB_BRANCH)/Gemfile $(WGET) -O Gemfile.lock https://gitlab.com/gitlab-org/gitlab-ce/raw/$(GITLAB_BRANCH)/Gemfile.lock git add Gemfile* git commit Gemfile* -m 'update Gemfile*' + +clean: + $(RM) -r .bundle/ vendor/bundle/ -- libgit2 0.21.2