Permalink
Browse files

Crappy extensions:clean task.

  • Loading branch information...
1 parent 9f0bede commit ba5120da20ef0d143f6c613c453bee4652590589 @jbarnette committed May 30, 2008
Showing with 9 additions and 0 deletions.
  1. +9 −0 Rakefile
View
@@ -51,6 +51,15 @@ Rake::Task[:gem].prerequisites << :extensions
desc "Our johnson requires extensions."
task :extensions => ["lib/johnson/spidermonkey.#{kind}"]
+namespace :extensions do
+ task :clean do
+ Dir.chdir("ext/spidermonkey") do
+ sh "rm -f Makefile"
+ sh "rm -f *.{o,so,bundle,log}"
+ end
+ end
+end
+
task :spidermonkey => "vendor/spidermonkey/jsapi.h" do
if ENV['CROSS']
Dir.chdir("vendor/spidermonkey") { sh "make -f Makefile.ref OS_CONFIG=#{ENV['CROSS']}" }

0 comments on commit ba5120d

Please sign in to comment.