Subject: | GNU make syntax in generated Makefile problematic |
On my freebsd9 smokers building the distribution fails:
...
Output from '/usr/bin/make':
Error expanding embedded variable.
...
make works if most of the postamble is deleted. It seems that the BSD make (at least the version which comes with freebsd9) cannot cope with the GNU make syntax used here.
As the postamble seems to be used only for development, you could choose to not generate it for some platforms, e.g. like this:
if ($^O !~ /bsd/) {
*MY::postamble = sub {
...
};
}
I don't know if there are also problems with other make variants like dmake and nmake on Windows, so maybe the $^O condition should be reversed to a positive match for platforms where make is usually GNU make (linux & darwin).