summaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2014-06-06 16:38:11 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2014-06-06 16:38:11 +0900
commitd3fda42eb62b4132eb91fb75acc28d3218415c8b (patch)
tree1a3aad03479a673e1cd6a77b71df8ed34e295fef /test
parenta8636103a224a2d95fb63fd588c69df2b6e053af (diff)
parentfb3c2f6b08d3d3fc26af50cea16be01afa35128f (diff)
downloadmruby-d3fda42eb62b4132eb91fb75acc28d3218415c8b.tar.gz
mruby-d3fda42eb62b4132eb91fb75acc28d3218415c8b.zip
Merge pull request #2359 from take-cheeze/src_gen_dep
Add generator script to dependency so that it will regenerate C codes when it's modified.
Diffstat (limited to 'test')
-rw-r--r--test/mrbtest.rake6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/mrbtest.rake b/test/mrbtest.rake
index e8eb6addd..c28cf3577 100644
--- a/test/mrbtest.rake
+++ b/test/mrbtest.rake
@@ -31,15 +31,15 @@ MRuby.each_target do
end
file ass_lib => ass_c
- file ass_c => "#{current_dir}/assert.rb" do |t|
+ file ass_c => ["#{current_dir}/assert.rb", __FILE__] do |t|
FileUtils.mkdir_p File.dirname t.name
open(t.name, 'w') do |f|
- mrbc.run f, [t.prerequisites], 'mrbtest_assert_irep'
+ mrbc.run f, [t.prerequisites.first], 'mrbtest_assert_irep'
end
end
file mlib => clib
- file clib => [mrbcfile, init] + mrbs do |t|
+ file clib => [mrbcfile, init, __FILE__] + mrbs do |t|
_pp "GEN", "*.rb", "#{clib.relative_path}"
FileUtils.mkdir_p File.dirname(clib)
open(clib, 'w') do |f|