Skip to content
This repository has been archived by the owner on Jan 26, 2022. It is now read-only.

Commit

Permalink
Speed up build now that we're doing it ahead of tests
Browse files Browse the repository at this point in the history
  • Loading branch information
raggi committed Jan 28, 2009
1 parent 3823433 commit 6e5ea50
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -121,18 +121,20 @@ using TCP/IP, especially if custom protocols are required.
end

namespace :ext do
ext_sources = FileList['ext/*.{h,cpp,rb,c}']

desc "Build C++ extension"
task :build => [:clean, :make]
task :build => [:make]

desc "make extension"
task :make => [:makefile] do
task :make => ext_sources + ['ext/Makefile'] do
chdir 'ext' do
sh MAKE
end
end

desc 'Compile the makefile'
task :makefile do |t|
file 'ext/Makefile' => ext_sources do
chdir 'ext' do
ruby 'extconf.rb'
end
Expand Down

0 comments on commit 6e5ea50

Please sign in to comment.