summaryrefslogtreecommitdiffstats
path: root/extconf.rb
diff options
context:
space:
mode:
authorguy Decoux <ts@moulon.inra.fr>2009-02-28 20:04:27 +0100
committerguy Decoux <ts@moulon.inra.fr>2009-02-28 20:04:27 +0100
commit9a643db7074054fb1af20497a5e36119a833b0c3 (patch)
treeca6a2d9152ab161cfe847b0fdff937542adf952f /extconf.rb
parent37e4ca938b10acde659f03f69035dda34c49f437 (diff)
downloadmmap-ruby-9a643db7074054fb1af20497a5e36119a833b0c3.zip
mmap-ruby-9a643db7074054fb1af20497a5e36119a833b0c3.tar.gz
mmap-0.1.4
Diffstat (limited to 'extconf.rb')
-rw-r--r--extconf.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/extconf.rb b/extconf.rb
index 32dbd06..73d0ce7 100644
--- a/extconf.rb
+++ b/extconf.rb
@@ -2,6 +2,12 @@ require "mkmf"
create_makefile "mmap"
begin
make = open("Makefile", "a")
+ make.puts "\ntest: $(DLLIB)"
+ Dir.foreach('tests') do |x|
+ next if /^\./ =~ x || /(_\.rb|~)$/ =~ x
+ next if FileTest.directory?(x)
+ make.print "\truby tests/#{x}\n"
+ end
make.print <<-EOT
unknown: $(DLLIB)