Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: User-side module building with ExtUtils::MakeMaker

by pryrt (Prior)
on Feb 21, 2020 at 14:52 UTC ( #11113314=note: print w/replies, xml ) Need Help??


in reply to User-side module building with ExtUtils::MakeMaker

instead of hardcoding the mkdir command, which isn't known on all systems, use the $(MKPATH) from ExtUtils::MakeMaker's Makefile, which calls mkpath. As a side benefit, mkpath automatically generates necessary parents as well, so you don't need the --parents argument.

sub MY::postamble { <<'EOT' blib/lib/OPTiMaDe/Filter/%.pm: %.yp $(MKPATH) (@D) yapp -v -m OPTiMaDe::Filter::Parser -o $@ $< EOT }

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (5)
As of 2020-05-29 07:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    If programming languages were movie genres, Perl would be:















    Results (167 votes). Check out past polls.

    Notices?