vicdan has asked for the wisdom of the Perl Monks concerning the following question:
I wrote some modules of which some of them are platform dependent.
This is so far my manifest of it:
bin/sysscan Changes lib/System/Scanner.pm lib/System/Scanner/AIX.pm lib/System/Scanner/Linux.pm lib/System/Scanner/Linux/RHEL.pm lib/System/Scanner/Linux/SUSE.pm Makefile.PL MANIFEST README t/System-Scanner.t
The basis of this consists of the sysscan binary plus the Scanner.pm module. The rest is platform dependant. What I need is to create at least three, maybe five different modules out of it.
This is because the next step is to make rpm packages out of it for different platforms.
I tried to figure out how to do this with ExtUtils::MakeMaker and searched for a solution, but it really fried my brain.
I learned that somehow the CONFIGURE attribute of the hash provided to WriteMakefile could be a solution, in that I could place a coderef in it that alters the hashref itself, but I after lots of google-loops and dark circles around my eyes I gave up.
I only can guess what it really does and how it works and I thought that before I jump at it doing lots of trial and error, I should take back a step and ask someone ...
Is there some way in Makefile.PL or options to accomplish this?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Makefile.PL: Howto make OS dependent modules
by Anonymous Monk on Jan 07, 2015 at 19:59 UTC | |
by vicdan (Novice) on Jan 07, 2015 at 21:30 UTC | |
by Anonymous Monk on Jan 07, 2015 at 22:18 UTC | |
|
Re: Makefile.PL: Howto make OS dependent modules
by Anonymous Monk on Jan 07, 2015 at 22:24 UTC | |
by vicdan (Novice) on Jan 08, 2015 at 09:15 UTC | |
by Anonymous Monk on Jan 08, 2015 at 09:50 UTC |