Ed Avis wrote:
> If you want to copy 'a file' to 'somewhere' then I'm afraid there is
> no easy way to do this with MakeMaker. I investigated that when I
> wanted to install some data files to /usr/share/ as part of an
> application. In the end I had to hack the generated Makefile text by
> hand, adding new targets and stuff; it wasn't pretty but it works.
>
> > When you say "Just print a warning message," is there a standard
> > way to do this as part of (or upon completion of) 'make install'?
>
> Hmm, not AFAIK. Again I think you will have to alter the generated
> Makefile textually, unless someone on this list can point out an
> official way.
After a little more research: Correct me if I'm wrong, but
since the install target is a double-colon target, I should
be able to append a rule like:
install ::
@echo This is my post-install message
(or presumably even run my post-install script.) And this
presumably can be handled by creating a sub MY::postamble
as described in the MakeMaker documentation under
"Overriding MakeMaker Methods".
-Norton