Click here to get back home

Creating Makefiles for multiple nested modules

 HomeNewsGroups | Search | About
 comp.lang.perl.modules    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Creating Makefiles for multiple nested modules Fotios Lindiakos 06-08-2006
Posted by Fotios Lindiakos on June 8, 2006, 3:33 pm
Please log in for more thread options


I just wanted to preface this with this is my first experience making
Perl modules, so if this is completely trivial, please laugh at me,
call me a noob, and point me in the right direction. Thanks.
--
I have a structure that looks something like this: (these aren't the
real names, but I can't really use them)
HC
|-- A
|-- I
|-- D
|-- IE
|-- MO
|-- M
|--FW
|--VM

And what I would like to do is allow users to pick what module they
want to install, and install the modules under it (or if possible, like
in the case of HC::A::D, just install IE by default). I have looked at
MakeMaker and Build, but they are quite confusing and I can't find a
good tutorial (if you have one, do share).
I also have to test for things like making sure Perl has ithreads and
checking what modules are installed and make sure they meet the minimum
versions (preferable automatically).
One final thing, is I need to move some files to say /etc, and didn't
find anything in the Makefile for that.

Any help or pointing towards good tutorials would be greatly
apprectiated.


Posted by Charles DeRykus on June 8, 2006, 11:53 pm
Please log in for more thread options


Fotios Lindiakos wrote:
> I just wanted to preface this with this is my first experience making
> Perl modules, so if this is completely trivial, please laugh at me,
> call me a noob, and point me in the right direction. Thanks.
> --
> I have a structure that looks something like this: (these aren't the
> real names, but I can't really use them)
> HC
> |-- A
> |-- I
> |-- D
> |-- IE
> |-- MO
> |-- M
> |--FW
> |--VM
>
> And what I would like to do is allow users to pick what module they
> want to install, and install the modules under it (or if possible, like
> in the case of HC::A::D, just install IE by default). I have looked at
> MakeMaker and Build, but they are quite confusing and I can't find a
> good tutorial (if you have one, do share).
> I also have to test for things like making sure Perl has ithreads and
> checking what modules are installed and make sure they meet the minimum
> versions (preferable automatically).
> One final thing, is I need to move some files to say /etc, and didn't
> find anything in the Makefile for that.
>
> Any help or pointing towards good tutorials would be greatly
> apprectiated.
>

Although I don't have any experience with Tk, something like Tk::Tree
might be worth investigating for the selection GUI. CPAN.pm (or the
newer CPANPLUS) has a scriptable interface to download and install
modules as well as any needed dependencies.

hth,
--
Charles DeRykus

Posted by Ron Savage on June 9, 2006, 4:15 am
Please log in for more thread options


On Fri, 9 Jun 2006 13:53:00 +1000, Charles DeRykus wrote:

Hi Fotios

>> Any help or pointing towards good tutorials would be greatly
>> apprectiated.

I suggest you subscribe to the Module::Build mailing list, since that module=
is
almost certainly the one you want to use instead of thinking in terms of
makefiles.

The list moved a couple of days ago, so whatever you find in the docs for=
the
module will not be correct.

Try:



Posted by harryfmudd [AT] comcast [DOT] on June 9, 2006, 2:56 pm
Please log in for more thread options


Charles DeRykus wrote:
>
> Although I don't have any experience with Tk, something like Tk::Tree
> might be worth investigating for the selection GUI. CPAN.pm (or the
> newer CPANPLUS) has a scriptable interface to download and install
> modules as well as any needed dependencies.
>

When you write your installer, remember that there are people who do
automated installs. For one thing, this is where ActivePerl ppm packages
come from. If your installer is a GUI, it will break all these.

MakeMaker will take care of dependencies for you. If you're _good_ with
'make', you may be able to configure the install, using the
ExtUtils::MakeMaker prompt() subroutine. ExtUtils::MakeMaker appears to
have ways to configure what you want to install, if you're willing to
subclass. But I think I would be looking for other options.

Tom Wyant

Similar ThreadsPosted
Question about creating modules May 27, 2006, 4:50 pm
multiple packages (modules) in the same file May 2, 2005, 3:53 pm
how to install multiple modules with one Makefile.PL July 2, 2008, 11:56 am
Nested loops? November 12, 2005, 10:07 pm
Re: match nested tags May 3, 2006, 5:20 pm
HTML::Template arbitraryily nested recursive loops April 8, 2005, 2:59 pm
Creating Calendar?? October 6, 2004, 12:37 am
Creating Thumbnails May 22, 2005, 5:18 pm
Creating spokes with SVG::TT::Graph::Pie November 15, 2006, 4:29 pm
Perl:CGI - Creating a Please wait message February 16, 2007, 11:13 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap