Sha256: 116451d4edf8b0a3f3c05b5b3112d994be35452be0fe9c2bd57e552066e3bb7a
Contents?: true
Size: 748 Bytes
Versions: 2
Compression:
Stored size: 748 Bytes
Contents
#!/usr/bin/env ratch # compile extensions main :compile => [ :make_config ] do extension_directories.each do |directory| build File.join(directory, 'Makefile') cd(directory) do make end end end # Setup Makefile builds task :make_config do extension_directories.each do |directory| file File.join(directory, 'Makefile') do cd(directory) do ruby "extconf.rb" end end end end # def extension_directories glob('ext/**/extconf.rb').map do |ext| File.dirname(ext) end end # Eric Hodel said NOT to copy the compiled libs. # #task :copy_files do # cp "ext/**/*.#{dlext}", "lib/**/#{arch}/" #end # #def dlext # Config::CONFIG['DLEXT'] #end # #def arch # Config::CONFIG['arch'] #end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ratch-0.4.0 | lib/ratch/toolset/ruby/compile |
ratch-0.4.1 | lib/ratch/toolset/ruby/compile |