Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > mkmf documentation?

Reply
Thread Tools

mkmf documentation?

 
 
Kero van Gelder
Guest
Posts: n/a
 
      08-02-2003
Hello,

Fiddling with mkmf, to get it to install a bunch of files in the proper
place; it's impossible without docs, reading the source doesn't help me
either

Specifically:
- what's the third item in the items for $INSTALLFILES
- How come `make install` creates directories with permissions rwxr-s---
- How to take *out* the default .so to install
- is it possible to generate recursive Makefiles?
- can I check availability of headerfiles and complain when they're not
found?

Thanks,
Kero.
 
Reply With Quote
 
 
 
 
Yukihiro Matsumoto
Guest
Posts: n/a
 
      08-02-2003
Hi,

In message "mkmf documentation?"
on 03/08/02, Kero van Gelder <> writes:

|Specifically:
| - what's the third item in the items for $INSTALLFILES

It's a prefix to be removed (e.g. "lib" in "lib/foobar.rb").

| - How come `make install` creates directories with permissions rwxr-s---

Does it?

| - How to take *out* the default .so to install

You can't. You have specified its name by create_makefile(target).

| - is it possible to generate recursive Makefiles?

No. You need to prepare extconf.rb for each directories.

| - can I check availability of headerfiles and complain when they're not
| found?

unless have_header("foobar.h")
warn "you should install <foobar.h> first"
exit
end

matz.

 
Reply With Quote
 
 
 
 
Kero van Gelder
Guest
Posts: n/a
 
      08-03-2003
> | - How come `make install` creates directories with permissions rwxr-s---
>
> Does it?


Yes. The s is from the parent directory, of course
Change umask, stir a bit and it's all solved.

> | - can I check availability of headerfiles and complain when they're not
> | found?
>
> unless have_header("foobar.h")
> warn "you should install <foobar.h> first"
> exit
> end


Erm, of course (ashamed).

Thanks,
Kero.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with adding header files for 'mkmf' - new to Swig/mkmf james.d.masters@gmail.com Ruby 0 10-24-2007 08:19 PM
mkmf & checking for a struct Guillaume Marcais Ruby 1 05-10-2004 08:13 PM
mkmf.rb broken in cvs? Brad Hilton Ruby 0 03-02-2004 11:40 PM
HP-UX+mkmf.rb -- compilation problems with 1.8.1 Kero Ruby 0 01-13-2004 07:24 PM
static libraries with extconf.rb/mkmf maillist@bestworldweb.homelinux.com Ruby 0 08-01-2003 07:27 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57