Makefile 724 Bytes
WGET = wget
GITLAB_BRANCH = 7-5-stable
BUNDLE_OPTS = --verbose --without='development test'

all:
	bundle install $(BUNDLE_OPTS) --local --deployment

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/