Commit a8b6334ca6ad2983c61aa2d45560caa8d826a8f9
1 parent
5ee111d4
Exists in
master
and in
1 other branch
update Makefile
Showing
1 changed file
with
16 additions
and
2 deletions
Show diff stats
Makefile
1 | WGET = wget | 1 | WGET = wget |
2 | GITLAB_BRANCH = 7-5-stable | 2 | GITLAB_BRANCH = 7-5-stable |
3 | +BUNDLE_OPTS = --verbose --without='development test' | ||
3 | 4 | ||
4 | all: | 5 | all: |
5 | - bundle install --verbose --path vendor/bundle | 6 | + bundle install $(BUNDLE_OPTS) --local --deployment |
6 | 7 | ||
7 | -update: | 8 | +install: all |
9 | + mkdir -p $(DESTDIR)$(PREFIX)/lib/gitlab/vendor | ||
10 | + $(RM) -r $(DESTDIR)$(PREFIX)/lib/gitlab/vendor/bundle | ||
11 | + cp -r vendor/bundle $(DESTDIR)$(PREFIX)/lib/gitlab/vendor/bundle | ||
12 | + | ||
13 | +update: clean bundle | ||
14 | + | ||
15 | +bundle: | ||
16 | + bundle install $(BUNDLE_OPTS) --path vendor/bundle | ||
17 | + | ||
18 | +update-gemfiles: | ||
8 | $(WGET) -O Gemfile https://gitlab.com/gitlab-org/gitlab-ce/raw/$(GITLAB_BRANCH)/Gemfile | 19 | $(WGET) -O Gemfile https://gitlab.com/gitlab-org/gitlab-ce/raw/$(GITLAB_BRANCH)/Gemfile |
9 | $(WGET) -O Gemfile.lock https://gitlab.com/gitlab-org/gitlab-ce/raw/$(GITLAB_BRANCH)/Gemfile.lock | 20 | $(WGET) -O Gemfile.lock https://gitlab.com/gitlab-org/gitlab-ce/raw/$(GITLAB_BRANCH)/Gemfile.lock |
10 | git add Gemfile* | 21 | git add Gemfile* |
11 | git commit Gemfile* -m 'update Gemfile*' | 22 | git commit Gemfile* -m 'update Gemfile*' |
23 | + | ||
24 | +clean: | ||
25 | + $(RM) -r .bundle/ vendor/bundle/ |