mkmf documentation?

  • Thread starter Kero van Gelder
  • Start date
K

Kero van Gelder

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.
 
Y

Yukihiro Matsumoto

Hi,

In message "mkmf documentation?"

|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.
 
K

Kero van Gelder

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

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,053
Latest member
BrodieSola

Latest Threads

Top