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