Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??

As pryrt said you can have many Makefile targets into the single postamble. I had similar worries asked here: Benchmarks target in Makefile. If you super-search for postamble you will find more.

If you were developing in Linux you could benefit from Autotools (I guess win-gnu has it too). I know it's old and tired but this is what I use and sometimes I hit its limitations. The "pattern" I use is to create a dir for my project to contain a huge Autotools Makefile (skeleton). Inside that parent dir I create a dir called Perl. Therein lies the Perl code, tests, doc etc. and the simplest Makefile.PL. Autotools' Makefile will be responsible for entering the Perl dir, creating the doc, even spellchecking the docs!, running critic, running the dev-tests, dev-benchmarks, pushing to git and eventually creating the dist-tarball for CPAN from only Perl's subdir contents. To recap: create the simplest, client-side Makefile.PL and all the functionality is in the parent dir in Autotools' Makefile which can hold sensitive passwords without having to remove them before dist. Nothing of this goes to client-side. A template is easy to be created to re-use with other projects.

Again, Autotools I feel is tired. The pattern I am suggesting of Parent-dir/Perl-dir may be a solution to limitations of Makefile.PL and the effort to keep it simple, just for client-side use. My proposal can be implemented with other auto-tools. I would personally keep away from cmake and all the "modern" gradles, ants, mavens and whatnot. (warning: based on personal experience and bitter taste rather than any sensible arguments, sorry.).

Although the point Anonymous Monk makes (++) that "Make syntax isnt portable." is valid.

bw, bliako


In reply to Re: let Makefile.PL to do the Readme file for me -- new target? by bliako
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":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (4)
As of 2024-03-30 08:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found