diff options
author | Nick Ing-Simmons <nik@tiuk.ti.com> | 2000-12-14 20:36:13 +0000 |
---|---|---|
committer | Nick Ing-Simmons <nik@tiuk.ti.com> | 2000-12-14 20:36:13 +0000 |
commit | 311a0942a841b9a310fcf53d05fa79c643b68a12 (patch) | |
tree | 24d053fea66b5e12d948d768361187c6a323f9e2 | |
parent | 2f2b4ff2c154a8e461857f2e82cb815c238d0d94 (diff) | |
download | perl-311a0942a841b9a310fcf53d05fa79c643b68a12.tar.gz |
"Cold" build correction to Encode's Makefile.PL
p4raw-id: //depot/perlio@8106
-rw-r--r-- | ext/Encode/Makefile.PL | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/ext/Encode/Makefile.PL b/ext/Encode/Makefile.PL index fd742ccc5a..f0d57feeca 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 ' |