summaryrefslogtreecommitdiffhomepage
path: root/tasks/mruby_build_commands.rake
diff options
context:
space:
mode:
authorCarson McDonald <[email protected]>2013-02-06 07:07:13 -0500
committerCarson McDonald <[email protected]>2013-02-06 07:07:13 -0500
commit42b7fe62d8c1e0470431469c9ffcf6cad819a62f (patch)
tree9bf22fe3adb2f0ce203a1ff9de90fbadc6242a17 /tasks/mruby_build_commands.rake
parent913faa43c83f31898a66dad394f609e547e1d3bd (diff)
downloadmruby-42b7fe62d8c1e0470431469c9ffcf6cad819a62f.tar.gz
mruby-42b7fe62d8c1e0470431469c9ffcf6cad819a62f.zip
Change task rule based on build_dir so main rules don't clobber gem rules.
Diffstat (limited to 'tasks/mruby_build_commands.rake')
-rw-r--r--tasks/mruby_build_commands.rake6
1 files changed, 5 insertions, 1 deletions
diff --git a/tasks/mruby_build_commands.rake b/tasks/mruby_build_commands.rake
index b3c83277c..884f2027f 100644
--- a/tasks/mruby_build_commands.rake
+++ b/tasks/mruby_build_commands.rake
@@ -68,7 +68,11 @@ module MRuby
def define_rules(build_dir, source_dir='')
@out_ext = build.exts.object
- generated_file_matcher = Regexp.new("^#{build_dir}/(.*)#{Regexp.escape out_ext}$")
+ if build_dir.include? "mrbgems/"
+ generated_file_matcher = Regexp.new("^#{build_dir}/(.*)#{Regexp.escape out_ext}$")
+ else
+ generated_file_matcher = Regexp.new("^#{build_dir}/(?!mrbgems/.+/)(.*)#{Regexp.escape out_ext}$")
+ end
source_exts.each do |ext, compile|
rule generated_file_matcher => [
proc { |file|