# Shiping headers with a ruby extension

**URL:** <https://www.ruby-forum.com/t/shiping-headers-with-a-ruby-extension/93162>\
**Category:** Ruby\
**Created:** [April 28, 2007, 3:34pm UTC](https://www.ruby-forum.com/t/shiping-headers-with-a-ruby-extension/93162 "2007-04-28T15:34:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Detlef\_R](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/58f4c7/32.png) [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Post date:** [April 28, 2007, 3:34pm UTC](https://www.ruby-forum.com/t/shiping-headers-with-a-ruby-extension/93162/1 "2007-04-28T15:34:20Z")

</div>

Hi,

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 ||= []  
$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.

cheers  
detlef
