Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Crappy extensions:clean task.

  • Loading branch information...
commit ba5120da20ef0d143f6c613c453bee4652590589 1 parent 9f0bede
@jbarnette authored
Showing with 9 additions and 0 deletions.
  1. +9 −0 Rakefile
View
9 Rakefile
@@ -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']}" }
Please sign in to comment.
Something went wrong with that request. Please try again.