From 37972dfe3ea0adbd9c5f9ffd8898ab3274ec72ba Mon Sep 17 00:00:00 2001 From: Tokuhiro Matsuno Date: Wed, 1 Jul 2009 18:20:14 +0900 Subject: [PATCH] copy files into this dir. --- perl/Makefile.PL | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/perl/Makefile.PL b/perl/Makefile.PL index f60e125..167bebe 100644 --- a/perl/Makefile.PL +++ b/perl/Makefile.PL @@ -6,7 +6,7 @@ perl_version '5.008005'; license 'perl'; can_cc or die "This module requires a C compiler"; -my $ccflags = '-I../ '; +my $ccflags = '.'; makemaker_args( OBJECT => '$(O_FILES)', @@ -26,6 +26,15 @@ makemaker_args( tests 't/*.t'; author_tests('xt'); +# copy modules +if ($Module::Install::AUTHOR && -d File::Spec->catfile('..', 'msgpack')) { + mkdir 'msgpack' unless -d 'msgpack'; + require File::Copy; + for my $src (<../msgpack/*.h>) { + File::Copy::copy($src, 'msgpack/') or die "copy failed: $!"; + } +} + auto_set_repository; build_requires 'Test::More'; use_test_base;