use ExtUtils::MakeMaker;
-# This is not the CPAN Unicode::Normalize makefile
-# that can handle XS-NOXS installing. We do just XS.
+my $clean = {};
-do "mkheader";
+if (-f "Normalize.xs") {
+ print STDERR "Making header files for XS...\n";
+
+ do "mkheader";
+ $clean = { FILES => 'unfcan.h unfcmb.h unfcmp.h unfcpt.h unfexc.h' };
+}
WriteMakefile(
+ 'INSTALLDIRS' => $] >= 5.007 ? 'perl' : 'site',
'NAME' => 'Unicode::Normalize',
'VERSION_FROM' => 'Normalize.pm', # finds $VERSION
- ($] >= 5.005 ? ## Add these new keywords supported since 5.005
- (ABSTRACT_FROM => 'Normalize.pm', # retrieve abstract from module
- AUTHOR => 'SADAHIRO Tomoyuki <SADAHIRO@cpan.org>') : ()),
- clean => {FILES=> 'unfcan.h unfcmb.h unfcmp.h unfcpt.h unfexc.h'},
+ 'clean' => $clean,
);