Sha256: 197417c6e4e8e5051115b8087c871f54f7db4c564e21bcd43e7e64e1ad644cc4
Contents?: true
Size: 1.18 KB
Versions: 4
Compression:
Stored size: 1.18 KB
Contents
require 'tasks/config' require 'pathname' #----------------------------------------------------------------------- # Extensions #----------------------------------------------------------------------- if ext_config = Configuration.for_if_exist?('extension') then namespace :ext do desc "Build the extension(s)" task :build do ext_config.configs.each do |extension| path = Pathname.new(extension) parts = path.split conf = parts.last Dir.chdir(path.dirname) do |d| ruby conf.to_s #sh "rake default" sh "make" end end end task :clean do ext_config.configs.each do |extension| path = Pathname.new(extension) parts = path.split conf = parts.last Dir.chdir(path.dirname) do |d| #sh "rake clean" sh "make clean" end end end task :clobber do ext_config.configs.each do |extension| path = Pathname.new(extension) parts = path.split conf = parts.last Dir.chdir(path.dirname) do |d| #sh "rake clobber" sh "make distclean" end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
amalgalite-0.2.2 | tasks/extension.rake |
amalgalite-0.2.3 | tasks/extension.rake |
amalgalite-0.2.4 | tasks/extension.rake |
amalgalite-0.4.0 | tasks/extension.rake |