"Torsten Schönfeld via RT" <bug-Glib@rt.cpan.org> writes:
Show quoted text> <URL:
http://rt.cpan.org/Ticket/Display.html?id=17493 >
>
> > Please see the attached patch to workaround the problem on BSD systems.
> > The patch now introduces a third variant for the if-section in the
> > generated Makefile.
>
> Thanks! With this, what happens if someone uses gmake on one of
> those BSDs?
Ka boom! Typically BSD users will use BSD make. It's the default when
auto-configuring CPAN.pm, it is documented in most READMEs/INSTALLs of
perl modules to use "make; make test; make install". GNU make is
installed as "gmake" on BSD machines if it is done through a port or
package.
Show quoted text>
> > FYI, the only possibility to distinguish between BSD make and GNU make
> > seems to be the name of the Makefile. GNU make chooses first
> > GNUmakefile, then Makefile etc. BSD make (at least the version which
> > comes with FreeBSD 6.1) first chooses BSDmakefile, then Makefile etc.
> > With this knowledge one could create another way to solve the problem:
> > just dump generate BSDmakefile and GNUmakefile and let the make tool
> > decide which file to use.
>
> Hmm, that sounds circuitous. I can't help thinking that there got to be
> a better way to solve this issue.
Unfortunately, it seems the case if one really needs the conditions or
other extended make stuff. I found no way of determining within a
Makefile whether BSD make or GNU make is the caller. And I would be
really happy to know if there is a way.
Regards,
Slaven
--
Slaven Rezic - slaven <at> rezic <dot> de
tktimex - time recording tool
http://sourceforge.net/projects/ptktools/