Given a Makefile.PL
, how can I install two binaries and two scripts in four different locations?
To be more precise, the directory structure is as follows:
- lib/my_package/main.pl
- bin/daemon/daemon.pl (*)
- bin/plugin/plugin.pl (*)
- scripts/conf/conf.sh (*)
- scripts/init/initd.sh (*)
- Makefile.PL
The files marked with (*) should be installed in the following paths:
- /usr/sbin/daemon.pl
- /var/qmail/smtpplugins/plugin.pl
- /usr/local/conf.sh
- /etc/init.d/initd.sh
and the contents of my Makefile.PL
use ExtUtils::MakeMaker;
WriteMakefile(
NAME => "my_package",
VERSION_FROM => "lib/my_package/main.pl"
);
What do I tell perl through the Makefile.PL
to make it install those four files in their corresponding directories?