Skip to content

Commit

Permalink
run make if any files in the extension change
Browse files Browse the repository at this point in the history
  • Loading branch information
taf2 committed Jul 15, 2008
1 parent 43356d6 commit 0d40076
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ def announce(msg='')
$stderr.puts msg
end

desc "Default Task (Build packages)"
task :default => :package
desc "Default Task (Test project)"
task :default => :test

# Determine the current version of the software
if File.read('ext/curb.h') =~ /\s*CURB_VERSION\s*['"](\d.+)['"]/
Expand Down Expand Up @@ -61,7 +61,7 @@ def make(target = '')
end

# Let make handle dependencies between c/o/so - we'll just run it.
file CURB_SO => 'ext/Makefile' do
file CURB_SO => (['ext/Makefile'] + Dir['ext/*.c'] + Dir['ext/*.h']) do
m = make
fail "Make failed (status #{m})" unless m == 0
end
Expand Down

0 comments on commit 0d40076

Please sign in to comment.