Sha256: e1dfb7d6a7cb89215a61850d20833847ea7637500799950749cd0955ec067181
Contents?: true
Size: 579 Bytes
Versions: 1
Compression:
Stored size: 579 Bytes
Contents
def each_extconf_directory(&block) Dir.glob("ext/**/extconf.rb").each do |extconf| cd File.dirname(extconf) do yield end end end desc 'Compile extended library' task 'ext:compile' do |t| each_extconf_directory do sh 'ruby extconf.rb' unless File.exist?('Makefile') sh 'make' end end desc 'Clean' task 'ext:clean' do |t| each_extconf_directory do sh 'make clean' if File.exist?('Makefile') end end desc 'Clean completely' task 'ext:distclean' do |t| each_extconf_directory do sh 'make distclean' if File.exist?('Makefile') end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ruby-mpfr-0.0.14 | lib/mpfr/rake_compile.rb |