Creating Makefiles for multiple nested modules

Ask a Question related to PERL Modules, Design and Development.

  1. #1

    Default Creating Makefiles for multiple nested modules

    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.

    Fotios Lindiakos Guest

  2. Similar Questions and Discussions

    1. Container size bug with nested modules?
      Last night I ran into a situation where I have one loaded module loading another module in a box and even though everything in the display chain is...
    2. Question about creating modules
      Hi, I'm new to perl and need a little help. I'm using ActiveState Perl under windows. I've tried creating a module from a C++ source using swig...
    3. creating instance of an inner nested datagrid
      I've got a web application I'm working on in Visual Studio 2003 in which I have a nested datagrid. The inner datagrid is the problem child. (code...
    4. Creating Perl Modules
      Does anyone know of any step by step (or as easy) tutorials for creating a perl module? Type of modules that don't use EXPORTER. I can't...
    5. Module methods in nested modules with 1.8.0
      >>>>> "P" == Papp Zoltan <padre@elte.hu> writes: P> module A::B P> def B.hello() def self.hello P> end P> end
  3. #2

    Default Re: Creating Makefiles for multiple nested modules

    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
    Charles DeRykus Guest

  4. #3

    Default Re: Creating Makefiles for multiple nested modules

    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 moduleis
    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 forthe
    module will not be correct.

    Try:

    List-Post: <mailto:module-build@perl.org>
    List-Help: <mailto:module-build-help@perl.org>
    List-Unsubscribe: <mailto:module-build-unsubscribe@perl.org>
    List-Subscribe: <mailto:module-build-subscribe@perl.org>

    Ron Savage Guest

  5. #4

    Default Re: Creating Makefiles for multiple nested modules

    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
    harryfmudd [AT] comcast [DOT] net Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

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 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139