Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: let Makefile.PL to do the Readme file for me -- new target?

by bliako (Monsignor)
on Jan 20, 2021 at 12:01 UTC ( [id://11127127]=note: print w/replies, xml ) Need Help??


in reply to let Makefile.PL to do the Readme file for me -- new target?

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

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (5)
As of 2024-03-28 17:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found