I'm creating a gem package with hoe library.
The package shoud do "cd ext/lib/ && make " when "gem install pkg.gem"
How to add task when package installing.
# -*- ruby -*-
require 'rubygems'
require 'hoe'
file ["ext/lib/*.c", "ext/lib/*.h"] do
Dir.chdir "ext/lib" do
sh "make"
end
end
Hoe.spec 'mypackage' do |p|
p.developer('My.Name.IS.FF', '[email protected]')
p.rubyforge_name = 'mypackage'
p.author = 'My.Name.IS.FF'
p.changes = p.paragraphs_of('History.txt', 0..1).join("\n\n")
p.clean_globs = ["ext/lib/*.c", "ext/lib/*.h"]
end