Permalink
Browse files

install *.rb only when top level extconf.rb is used.

  • Loading branch information...
1 parent ec3b4c1 commit e109868f62a1ea4a24100ce5a62b52db4c69829a @kou kou committed Aug 5, 2011
Showing with 5 additions and 2 deletions.
  1. +4 −2 ext/groonga/extconf.rb
  2. +1 −0 extconf.rb
View
@@ -158,7 +158,9 @@ def install_groonga_locally(major, minor, micro)
debug
end
-$INSTALLFILES ||= []
-$INSTALLFILES << ["../../lib/**/*.rb", "$(RUBYLIBDIR)", "../../lib"]
+if ENV["INSTALL_RB"] == "yes"
+ $INSTALLFILES ||= []
+ $INSTALLFILES << ["../../lib/**/*.rb", "$(RUBYLIBDIR)", "../../lib"]
+end
create_makefile(module_name)
View
@@ -34,6 +34,7 @@
end
ruby = "#{config['bindir']}/#{config['ruby_install_name']}#{config['EXEEXT']}"
message("checking in #{ext_dir}...\n")
+ ENV["INSTALL_RB"] = "yes"
system(ruby, (ext_dir + 'extconf.rb').to_s, *ARGV) or exit 1
message("checking in #{ext_dir}: done.\n")
File.open("Makefile") do |file|

0 comments on commit e109868

Please sign in to comment.