Selon Jordi Vilalta <jvprat(a)wanadoo.es>:
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.
Nice job ! I'm currently working on integrating it into the CVS. I have a few
question for you. Sorry for the delay.
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.
Do you need the Makefile anyhow, or is the Build system enough for everything?
I would really love to get completely ride of any makefiles around there. It
looks like the Right Thing to do in a perl module to me, and may help the
portability to non-unix OSes.
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.
There was no need for that, thanks. If we manage to create a proper perl module,
packaging this to debian will be really easier using a tool called cdbs, but
that's a bit out of topic for now.
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...
No, no problem.
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.
Yes, that's definitively where I want to go.
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).
Nice job ! I didn't knew about the define construct in makefiles. It's just
awsom.
I hope I didn't break so many things...
It does not look so, and even if it were the case, it wouldn't be an issue...
Thanks again, Mt.
PS: No need to CC me, I'm already subscribed twice on that damn mailing list ;)