Do you know where your variables are? | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
If you are using ExtUtils::MakeMaker, you can prompt the user for an installation location (or just set it yourself). To actually install that stuff using the usual Makemaker sequence, you add some makefile rules. Makemaker uses the My:: namespace to allow you to add extra stuff (or override things) that Makemaker will output. You just need to add the stuff to install your templates. The targets in the makefile are double-colon targets, so you can add to their definition. From the postamble(), return the string you want Makemaker to add to the makefile.
Makemaker has a lot more features like this, too. The best way to find out about them is to look at other people's Makefile.PL. The complicated modules should have interesting examples that you can re-use. Once you get the hang of it, you can do some pretty powerful things. In reply to Re: Including TT2 templates in module distributions
by brian_d_foy
|
|