Rakefile in ruby-dnn-0.1.0 vs Rakefile in ruby-dnn-0.1.1
- old
+ new
@@ -5,6 +5,18 @@
t.libs << "test"
t.libs << "lib"
t.test_files = FileList["test/**/*_test.rb"]
end
-task :default => :test
+task :build_mnist do
+ sh "cd lib/dnn/ext/mnist; ruby extconf.rb; make"
+end
+
+task :build_cifar10 do
+ sh "cd lib/dnn/ext/cifar10; ruby extconf.rb; make"
+end
+
+task :build_image_io do
+ sh "cd lib/dnn/ext/image_io; ruby extconf.rb; make"
+end
+
+task :default => [:test, :build_mnist, :build_cifar10, :build_image_io]