Commit 78efc270bc489441e949b5c2c486486b42439a0e
1 parent
e937229d
Exists in
master
and in
1 other branch
Makefile: add dist target
Showing
2 changed files
with
9 additions
and
1 deletions
Show diff stats
.gitignore
Makefile
1 | +VERSION = 7.5 | ||
2 | +TARBALL = gitlab-deps-$(VERSION).tar.gz | ||
1 | WGET = wget | 3 | WGET = wget |
2 | GITLAB_BRANCH = 7-5-stable | 4 | GITLAB_BRANCH = 7-5-stable |
3 | BUNDLE_OPTS = --verbose --without='development test' | 5 | BUNDLE_OPTS = --verbose --without='development test' |
@@ -5,6 +7,11 @@ BUNDLE_OPTS = --verbose --without='development test' | @@ -5,6 +7,11 @@ BUNDLE_OPTS = --verbose --without='development test' | ||
5 | all: | 7 | all: |
6 | bundle install $(BUNDLE_OPTS) --local --deployment | 8 | bundle install $(BUNDLE_OPTS) --local --deployment |
7 | 9 | ||
10 | +dist: $(TARBALL) | ||
11 | + | ||
12 | +$(TARBALL): | ||
13 | + (git archive --prefix=gitlab-deps-$(VERSION)/ HEAD | gzip > $@) || ($(RM) $@; false) | ||
14 | + | ||
8 | install: all | 15 | install: all |
9 | mkdir -p $(DESTDIR)$(PREFIX)/lib/gitlab/vendor | 16 | mkdir -p $(DESTDIR)$(PREFIX)/lib/gitlab/vendor |
10 | $(RM) -r $(DESTDIR)$(PREFIX)/lib/gitlab/vendor/bundle | 17 | $(RM) -r $(DESTDIR)$(PREFIX)/lib/gitlab/vendor/bundle |
@@ -22,4 +29,4 @@ update-gemfiles: | @@ -22,4 +29,4 @@ update-gemfiles: | ||
22 | git commit Gemfile* -m 'update Gemfile*' | 29 | git commit Gemfile* -m 'update Gemfile*' |
23 | 30 | ||
24 | clean: | 31 | clean: |
25 | - $(RM) -r .bundle/ vendor/bundle/ | 32 | + $(RM) -r .bundle/ vendor/bundle/ $(TARBALL) |