Skip to content

Commit

Permalink
Merge pull request #67 from Marketcircle/master
Browse files Browse the repository at this point in the history
Fix GH-66
  • Loading branch information
luislavena committed Dec 13, 2012
2 parents cc7c795 + 42329f6 commit cb48426
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions README.rdoc
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,12 @@ contribute back to your project.
Now the fun part. It's time to introduce the code to your projects Rakefile
to tell it to use rake-compiler to build your extension:

# File: extconf.rb

# this line should already exist
create_makefile('hello_world')


# File: Rakefile

require 'rake/extensiontask'
Expand All @@ -78,6 +84,12 @@ to tell it to use rake-compiler to build your extension:
That's it? Yes, that's it! No other lines of code are needed for
rake-compiler to work its magic.

Though, you need to make sure the parameter to <tt>create_makefile</tt>
and <tt>ExtensionTask.new</tt> are the same or rake-compiler will not mimic
the RubyGems standard install process. You can override this standard
behaviour if needed, see the instructions for "non-standard project structure"
below for details.

If you want to do the same for a JRuby extension written in Java, it's just
as easy:

Expand Down

0 comments on commit cb48426

Please sign in to comment.