Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^2: MakeMaker nsFAQs

by BigLug (Chaplain)
on Aug 18, 2004 at 05:17 UTC ( [id://383859]=note: print w/replies, xml ) Need Help??


in reply to Re: MakeMaker nsFAQs
in thread MakeMaker nsFAQs

Thanks tachyon, but I found a way:
sub MY::postamble { return <<'MAKE_FRAG'; testmore :: pure_all PERL_DL_NONLAZY=1 $(FULLPERLRUN) "-MExtUtils::Command::MM" "-e" "t +est_harness($(TEST_VERBOSE), '$(INST_LIB)', '$(INST_ARCHLIB)')" t/mor +e/*.t MAKE_FRAG }
Creating a MY::postamble that returns a string will append that string to the Makefile. So, by copying the syntax for the existing test target, but altering the directory, I am able to add a new testmore target to the Makefile.

I'm still working on interaction before installing though. One Idea I've just had is to create a t/zzz_post_make_config.t that would prompt the user after testing. Of course I'd have to be careful about output so as not to trigger as a failed test.

Cheers!
Rick
If this is a root node: Before responding, please ensure your clue bit is set.
If this is a reply: This is a discussion group, not a helpdesk ... If the discussion happens to answer a question you've asked, that's incidental.

Replies are listed 'Best First'.
Re^3: MakeMaker nsFAQs
by Anonymous Monk on Aug 18, 2004 at 06:23 UTC
    I hope you realize that is not portable
      I hope you realise that that's a crap reply. If it's not portable, take a second to point out where it's not portable. Do you mean in the path? If so, or if elsewhere, how should I fix it?
      If this is a root node: Before responding, please ensure your clue bit is set.
      If this is a reply: This is a discussion group, not a helpdesk ... If the discussion happens to answer a question you've asked, that's incidental.
        Makefile syntax is different across various OSs, command line syntax is different, too. It's probably somewhat more portable to use the "oneliner" method from ExtUtils::MakeMaker for constructing the command line.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://383859]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (7)
As of 2024-04-25 15:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found