From: Nick Ing-Simmons Date: Thu, 14 Dec 2000 20:36:13 +0000 (+0000) Subject: "Cold" build correction to Encode's Makefile.PL X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=311a0942a841b9a310fcf53d05fa79c643b68a12;p=p5sagit%2Fp5-mst-13.2.git "Cold" build correction to Encode's Makefile.PL p4raw-id: //depot/perlio@8106 --- diff --git a/ext/Encode/Makefile.PL b/ext/Encode/Makefile.PL index fd742cc..f0d57fe 100644 --- a/ext/Encode/Makefile.PL +++ b/ext/Encode/Makefile.PL @@ -1,4 +1,6 @@ use ExtUtils::MakeMaker; +my @tables = qw(iso8859 EBCDIC Symbols); + WriteMakefile( NAME => "Encode", VERSION_FROM => 'Encode.pm', @@ -13,6 +15,22 @@ WriteMakefile( package MY; + +sub post_initialize +{ + my ($self) = @_; + push(@{$self->{'O_FILES'}},map("$_\$(OBJ_EXT)",@tables)); + $self->{'clean'}{'FILES'} .= join(' ',map("$_.*",@tables)); + return ''; +} + +sub clean +{ + my ($self) = @_; + return $self->SUPER::clean . qq[ + \$(RM_F) ].join(' ',map("$_.*",@tables))."\n" +} + sub postamble { return '