Hello hippo,

maybe I'm confused by the context of this part of the thread (where Autottols has another makefile) but you said:

> author-only targets (such as make dist)

I supposed too this to be true but I'm very disappointed (not by you ;) to discover is not. I'm actually playing with my Makefile.PL to add functionalities only during the author phase (distinct from user phase) and to do this I have overridden dist target (also tried with distdir one).

Actually I have this pattern:

package MY; # so that "SUPER" works right sub dist { # SAVE WHAT RECEIVED BY THE ORIGINAL dist my $inherited = $_[0]->SUPER::dist(@_); my $ask_for_git = main::prompt ("*** CUSTOM *** Do you want to spe +cify a git repository?:"); if ( $ask_for_git =~ /^y/i ){ ...

But for what I see the dist target is reached by the cpan client too:

io@COMP:c>cpan . You are visiting the local directory '.' without lock, take care that concurrent processes do not do likewise +. CPAN: CPAN::SQLite loaded ok (v0.211) Database was generated on Sun, 24 Jan 2021 14:03:26 GMT You are visiting the local directory 'c:/ulisse/games-dice-roller-LazyMakefileOK/Games-Dice-Roller-0.04/G +ames-Dice-Roller-0.04/.' without lock, take care that concurrent processes do not do likewise +. c:/ulisse/games-dice-roller-LazyMakefileOK/Games-Dice-Roller-0.04/Ga +mes-Dice-Roller-0.04/. Has already been unwrapped into directory c:/ulisse/games-dice-rolle +r-LazyMakefileOK/Games-Dice-Roller-0.04/Games-Dice -Roller-0.04/. CPAN: CPAN::Meta::Requirements loaded ok (v2.140) CPAN: Parse::CPAN::Meta loaded ok (v2.150010) CPAN: CPAN::Meta loaded ok (v2.150010) CPAN: Module::CoreList loaded ok (v5.20170114_24) Configuring c:/ulisse/games-dice-roller-LazyMakefileOK/Games-Dice-Roll +er-0.04/Games-Dice-Roller-0.04/. with Makefile.PL CPAN: CPAN::Reporter loaded ok (v1.2018) Reporting via CPAN::Reporter is disabled for local directories Name "main::meta_merge_args" used only once: possible typo at Makefile +.PL line 38. Checking if your kit is complete... Warning: the following files are missing in your kit: debug.log MANIFEST.bak pm_to_blib Please inform the author. *** CUSTOM *** Do you want to specify a git repository?: ... C:\ulisse\perl5.24-64b\c\bin\dmake.exe install UNINST=1 -- OK

I'd really prefere to use an already present target because of laziness: if I remember to make my_custom_target_do_readme I can also remember to make the readme by hand, no? :)

Both dist and distdir are under ExtUtils::MakeMaker#Distribution-Support where is stated:

> For authors of extensions MakeMaker provides several Makefile targets...

Maybe the cpan client broke the rule? As side note cpan client has no verbose output and I did not found which steps it does to install a module.

Thanks for reading.

L*

There are no rules, there are no thumbs..
Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.

In reply to Re^4: let Makefile.PL to do the Readme file for me -- no author target? by Discipulus
in thread let Makefile.PL to do the Readme file for me -- new target? by Discipulus

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.