Re: ExtUtils::MakeMaker help - PL_FILES
[email protected] (brian d foy) Fri, 28 Aug 2009 16:15:04 -0500
| Newsgroups | perl.makemaker |
|---|---|
| Message-ID | <280820091615044205%[email protected]> |
In article <[email protected]>, Alberto Simões <[email protected]> wrote: > I am using PL_FILES => { foo/bar.PL => foo/bar }, and foo/bar.PL uses a > lateral file (say, ugh.txt) on the distro to build the script foo/bar. > > How can I force the dependency, so make knows it should rebuild foo/bar > when I change ugh.txt? I don't know a way that you can do this from Makemaker. Have you tried creating the dependency in the Makefile itself? You insert a bit of code into the Makefile through MY::postamble, and you make it run the same thing that processes the PL_FILES. That's certainly ugly. When you get down to this level of detail, it's sometimes easier to use Module::Build unless you have some other contraint that forces you to use MakeMaker.