diff --git a/Makefile b/Makefile index d63435e..06ab92e 100644 --- a/Makefile +++ b/Makefile @@ -5,15 +5,18 @@ PREFIX = /usr WGET = wget BRANCH = v0.8.1.colab BUNDLE_OPTS = --verbose --without='development test cucumber' +GEMFILE_URL=https://portal.softwarepublico.gov.br/gitlab/mezuro/prezento/raw/ all: bundle install $(BUNDLE_OPTS) --local --deployment - grep -rl '/usr/local/bin/ruby' vendor/bundle/ruby/gems/*/ | xargs --no-run-if-empty sed -i -e '1,2 s|.*|#!/usr/bin/env ruby|' + grep -rl '/usr/local/bin/ruby' vendor/bundle/ruby/gems/*/ | \ + xargs --no-run-if-empty sed -i -e '1,2 s|.*|#!/usr/bin/env ruby|' dist: $(TARBALL) $(TARBALL): - (git archive --prefix=$(NAME)-deps-$(VERSION)/ HEAD | gzip > $@) || ($(RM) $@; false) + (git archive --prefix=$(NAME)-deps-$(VERSION)/ HEAD | \ + gzip > $@) || ($(RM) $@; false) install: all mkdir -p $(DESTDIR)$(PREFIX)/lib/$(NAME)/vendor @@ -24,8 +27,8 @@ install: all update: clean $(RM) Gemfile* - $(WGET) -O Gemfile https://portal.softwarepublico.gov.br/gitlab/mezuro/prezento/raw/$(BRANCH)/Gemfile --no-check-certificate - $(WGET) -O Gemfile.lock https://portal.softwarepublico.gov.br/gitlab/mezuro/prezento/raw/$(BRANCH)/Gemfile.lock --no-check-certificate + $(WGET) -O Gemfile $(GEMFILE_URL)/$(BRANCH)/Gemfile --no-check-certificate + $(WGET) -O Gemfile.lock $(GEMFILE_URL)/$(BRANCH)/Gemfile.lock --no-check-certificate $(MAKE) bundle bundle: -- libgit2 0.21.2