public
Description: New development on the Ruby bindings for the GNU Scientific Library
Clone URL: git://github.com/codahale/ruby-gsl.git
Split compile/recompile Rake tasks up. rake spec now depends on rake 
compile.

Run rake recompile if you changed extconf.rb.
codahale (author)
Mon Feb 25 19:40:24 -0800 2008
commit  00ae5e36e32b0f70acb383281a2082cad0220bea
tree    aefd3fe3af05664e6028bbbbe9e2fb8c341fa448
parent  670d8a3b520e3b9d6f43650a42ce4e931d58b218
...
8
9
10
11
 
12
13
14
 
 
 
 
 
 
 
15
16
...
8
9
10
 
11
12
13
14
15
16
17
18
19
20
21
22
23
0
@@ -8,8 +8,15 @@ CLEAN.include(
0
 )
0
 
0
 desc "Clean, then compile the extension."
0
-task :compile => [:clean] do
0
+task :recompile => [:clean] do
0
   Dir.chdir('./ext')
0
   system "ruby extconf.rb && make"
0
   Dir.chdir("..")
0
+end
0
+
0
+desc "Compile the extension."
0
+task :compile do
0
+ Dir.chdir('./ext')
0
+ system "make"
0
+ Dir.chdir("..")
0
 end
0
\ No newline at end of file
...
15
16
17
18
 
19
20
21
...
15
16
17
 
18
19
20
21
0
@@ -15,7 +15,7 @@ EOS
0
 end
0
 
0
 desc "Run the specs."
0
-Spec::Rake::SpecTask.new(:spec) do |t|
0
+Spec::Rake::SpecTask.new(:spec => :compile) do |t|
0
   t.spec_opts = ['--options', "spec/spec.opts"]
0
   t.spec_files = FileList['spec/**/*_spec.rb']
0
 end

Comments

    No one has commented yet.