You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@thrift.apache.org by jf...@apache.org on 2011/09/22 23:15:03 UTC

svn commit: r1174393 - in /thrift/trunk/lib/rb: Makefile.am Rakefile

Author: jfarrell
Date: Thu Sep 22 21:15:02 2011
New Revision: 1174393

URL: http://svn.apache.org/viewvc?rev=1174393&view=rev
Log:
Thrift-1354: Add rake task to build just the gem file
Client: rb
Patch: jfarrell

Updates ruby build to now build the gem by default and adds a rake task to create the gem.


Modified:
    thrift/trunk/lib/rb/Makefile.am
    thrift/trunk/lib/rb/Rakefile

Modified: thrift/trunk/lib/rb/Makefile.am
URL: http://svn.apache.org/viewvc/thrift/trunk/lib/rb/Makefile.am?rev=1174393&r1=1174392&r2=1174393&view=diff
==============================================================================
--- thrift/trunk/lib/rb/Makefile.am (original)
+++ thrift/trunk/lib/rb/Makefile.am Thu Sep 22 21:15:02 2011
@@ -31,7 +31,7 @@ EXTRA_DIST = \
 DESTDIR ?= /
 
 all-local:
-	$(RAKE) build_ext
+	$(RAKE) 
 
 install-exec-hook:
 	$(RAKE) install

Modified: thrift/trunk/lib/rb/Rakefile
URL: http://svn.apache.org/viewvc/thrift/trunk/lib/rb/Rakefile?rev=1174393&r1=1174392&r2=1174393&view=diff
==============================================================================
--- thrift/trunk/lib/rb/Rakefile (original)
+++ thrift/trunk/lib/rb/Rakefile Thu Sep 22 21:15:02 2011
@@ -24,7 +24,7 @@ require 'spec/rake/spectask'
 
 THRIFT = '../../compiler/cpp/thrift'
 
-task :default => [:spec]
+task :default => [:gem]
 task :spec => [:'gen-rb', :realspec]
 
 Spec::Rake::SpecTask.new(:realspec) do |t|
@@ -85,12 +85,16 @@ task :benchmark do
   ruby 'benchmark/benchmark.rb'
 end
 
-desc 'Generate and install the thrift gem'
-task :install => [:spec, :build_ext] do
+desc 'Builds the thrift gem'
+task :gem => [:spec, :build_ext] do
   unless sh 'gem', 'build', 'thrift.gemspec'
     $stderr.puts "Failed to build thrift gem"
     break
   end
+end
+
+desc 'Install the thrift gem'
+task :install => [:gem] do
   unless sh 'gem', 'install', 'thrift-*.gem'
     $stderr.puts "Failed to install thrift gem"
     break