Shiping headers with a ruby extension


i have written a ruby extension, that should be the base for other
extensions. So i have to ship some of its header files.

I use setup.rb in the main directory and extconf.rb (mkmf) in the
extensions directory.

I came about something like:

$INSTALLFILES << [“types.h”, “$(RUBYARCHDIR)/$(target_prefix)”, “lib”]

included in the extconf.rb but it doesn’t work.

I know, that i can do it with a post-install.rb script, but i hope that
there is a better solution.


This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs