DeaconBlues has asked for the wisdom of the Perl Monks concerning the following question:
I need help setting up my Makefile.PL config variables. I am creating a perl module and I began with h2xs. My current variables are:
WriteMakefile( 'NAME' => 'Foo::Bar', 'VERSION_FROM' => 'Bar.pm' 'PREFIX' => '/home/deaconblues/code/lib' 'PREREQ_PM' => {}, # e.g., Module::Name => 1.1 );
I have 2 extra perl libraries I want to include when running 'make test' or 'make testdb' besides the standard perl library. When I run the testnig part of the make process the script does not find required modules in these 2 non-standard libraries. I have been editing the Make file by hand and adding -I flags to the following lines.
test_dynamic :: pure_all PERL_DL_NONLAZY=1 $(FULLPERL) -I$(INST_ARCHLIB) -I$(INST_LIB) +-I$(PERL_A RCHLIB) -I$(PERL_LIB) $(TEST_FILE) testdb_dynamic :: pure_all PERL_DL_NONLAZY=1 $(FULLPERL) $(TESTDB_SW) -I$(INST_ARCHLIB) - +I$(INST_LI B) -I$(PERL_ARCHLIB) -I$(PERL_LIB) $(TEST_FILE)
I add the flags "-I/home/deaconblues/code/lib" and "-I/opt/cd/dv/na/bin", which work. The problem with this is that whenever I 'make clean', I have to redo my edits after I rerun 'perl Makefile.PL', because the Makefile gets deleted. I would like to setup the config variables in the MakeFile.PL script to produce the changes automatically that I have been doing by hand.
I had tried using the INC variable but it doesn't get included in above lines. Please do not tell me "Well then don't 'make clean'. :-)
Thank you for your assistance
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Help setting up Makefile.PL
by btrott (Parson) on Mar 22, 2001 at 22:56 UTC | |
|
(tye)Re: Help setting up Makefile.PL
by tye (Sage) on Mar 22, 2001 at 21:23 UTC | |
|
Re: Help setting up Makefile.PL
by DeaconBlues (Monk) on Mar 22, 2001 at 22:47 UTC | |
by tye (Sage) on Mar 22, 2001 at 22:55 UTC | |
by DeaconBlues (Monk) on Mar 23, 2001 at 02:11 UTC |