-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathRakefile
36 lines (30 loc) · 816 Bytes
/
Rakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
require "bundler/gem_tasks"
require "rake/testtask"
require "rake/extensiontask"
require "yard"
require "yard/rake/yardoc_task"
Rake::TestTask.new(:test) do |t|
t.libs << "test"
t.libs << "ext"
t.libs << "lib"
t.test_files = FileList["test/*_test.rb", "test/functions_test/*_test.rb", "test/layers_test/*_test.rb"]
end
Rake::ExtensionTask.new "rb_stb_image" do |ext|
ext.lib_dir = "lib/rb_stb_image"
end
task :build_rb_stb_image do
sh "cd ext/rb_stb_image; ruby extconf.rb; make"
end
task :clean_rb_stb_image do
sh "cd ext/rb_stb_image; make clean; unlink Makefile"
end
task :default => [:test, :build_rb_stb_image]
YARD::Rake::YardocTask.new do |t|
t.files = [
"lib/dnn.rb",
"lib/dnn/core/*.rb",
"lib/dnn/core/layers/*.rb",
"lib/dnn/*.rb",
"lib/dnn/datasets/*.rb",
]
end