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?
In reply to Makefile.PL: Howto make OS dependent modules by vicdan
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |