[Module-build-general] Cross-platform fixes for pass-through Makefile
Status: Beta
Brought to you by:
kwilliams
|
From: Ken W. <ke...@ma...> - 2003-02-17 15:45:53
|
Hi,
After some discussions with James Freeman, I've just checked in the
following code that generates the pass-through Makefile:
sub fake_makefile {
my $makefile = $_[1];
my $build = File::Spec->catfile( '.', 'Build' );
return <<"EOF";
all :
$build
realclean :
$build realclean
$^X -e unlink -e shift $makefile
.DEFAULT :
$build \$@
.PHONY : install manifest
EOF
}
It works fine for me, and it doesn't have any possibility of non-safe
shell characters anymore. Can someone test it (cvs update; perl
Makefile.PL; make test; make realclean) on other platforms besides OS
X? I'm particularly keen to know whether the 'realclean' target
succeeds in unlinking the Makefile on Win32, or whether it's considered
"open" and can't be deleted. If that's the case, I'll need a chmod()
or something before unlinking.
-Ken
|