aboutsummaryrefslogtreecommitdiffstats
path: root/common.mk
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-01-16 04:52:59 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-01-16 04:52:59 +0000
commit983cbb1aed57665e3a616f40b759f35bf143e091 (patch)
treeff9eb17a393cfc7e341154f3a2bfaf9b198981f1 /common.mk
parentd0cf23b57eae01a21e10658b8272b498117d3913 (diff)
downloadruby-983cbb1aed57665e3a616f40b759f35bf143e091.tar.gz
common.mk: extract-gems
* common.mk (extract-gems): extract gem files to install them even if zlib is not available. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49271 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'common.mk')
-rw-r--r--common.mk11
1 files changed, 11 insertions, 0 deletions
diff --git a/common.mk b/common.mk
index 0b82bcc1a7..96f621584d 100644
--- a/common.mk
+++ b/common.mk
@@ -924,6 +924,14 @@ update-gems: PHONY
-e 'File.unlink(*(old-[gem]))' \
bundled_gems
+extract-gems: PHONY
+ $(ECHO) Extracting bundled gem files...
+ $(Q) $(RUNRUBY) -C "$(srcdir)/gems" \
+ -I../tool -rgem-unpack -answ \
+ -e 'gem, ver = *$$F' \
+ -e 'Gem.unpack("#{gem}-#{ver}.gem")' \
+ bundled_gems
+
UPDATE_LIBRARIES = no
### set the following environment variable or uncomment the line if
@@ -973,6 +981,9 @@ extract-extlibs:
clean-extlibs:
$(Q) $(RMALL) $(srcdir)/.downloaded-cache
+clean-gems:
+ $(Q) $(RM) gems/*.gem
+
CLEAN_CACHE = clean-extlibs
info: info-program info-libruby_a info-libruby_so info-arch