require 'maven/ruby/maven' module Maven module Ruby class GemSetup def self.setup( specfile ) basedir = File.dirname( File.expand_path( specfile ) ) extdir = File.join( basedir, 'ext' ) return unless File.exists? extdir deps = File.join( extdir, 'deps.lst' ) File.open( File.join( extdir, 'Makefile' ), 'w' ) do |f| f.print <