Hi there,
On Fri, 4 Jun 2004, Martin Quinson wrote:
The right solution would be to get the manpage and mo file generation
out of
the regular Makefile, and include them properly to the Perl build system.
If you want to look at this issue, you're more than welcome.
The MakeMaker FAQ says: "Module::Build is the official heir apparent to
MakeMaker and we encourage people to work on M::B rather than spending
time improving MakeMaker". So this is what I've done. I attach the new
files, and the ones I modified. Now, the basic distribution can be
installed with:
perl Build.PL
./Build
./Build test
./Build install
and it doesn't deppend on make. I've transformed the debian/rules into a
main Makefile, so that it makes this process for you, and it includes the
locales and translated manpages generation. This way, one can install the
complete application and documents from the tar.gz. I've also reworked
debian/rules to use this main makefile. I haven't tested it (I have no
debian at home) so it may need some changes. The biggest change is in the
manpages generation: it writes each file in a hierarchy as they should be
installed on the system; it eases the installation without the
dh_installman tool, but I dont know if it's so bad for the debian package
generation...
The next step could be to watch how to integrate locales and manpages
generation into the Build.PL (as the manual says, Module::Build is more
easily custmoizable than MakeMaker), but for now, it lets you install the
complete file set on every distribution, not only debian.
I've also improved (in my opinion) the po/{bin,pod} Makefiles, using the
LANGS variable, instead of the redundant POFILES and MOFILES. The biggest
change has been in the pod Makefile, where I've made it able to translate
pods to many languages, instead of only the hardcoded french (I'll send
you a partial spanish translation of the pods soon).
I hope I didn't break so many things...
Regards,
Jordi Vilalta