mirror of
https://github.com/DBD-SQLite/DBD-SQLite
synced 2025-06-07 14:19:10 -04:00
copy sqlite sources only if they are amalgamated
This commit is contained in:
parent
dfdca986de
commit
454e4a156a
1 changed files with 6 additions and 4 deletions
10
Makefile.PL
10
Makefile.PL
|
@ -323,16 +323,18 @@ sub postamble {
|
|||
my $postamble = eval {
|
||||
DBI::DBD::dbd_postamble(@_)
|
||||
};
|
||||
my $S = $^O eq 'MSWin32' ? '\\' : '/'; # only Win32 (not cygwin)
|
||||
my $share = "\$(INST_LIB)${S}auto${S}share${S}dist${S}\$(DISTNAME)";
|
||||
my $perm_dir = $ExtUtils::MakeMaker::VERSION >= 6.52 ? '$(PERM_DIR)' : '755';
|
||||
$postamble .= <<"SHARE";
|
||||
if (-e 'sqlite3.c' && -e 'sqlite3.h') {
|
||||
my $S = $^O eq 'MSWin32' ? '\\' : '/'; # only Win32 (not cygwin)
|
||||
my $share = "\$(INST_LIB)${S}auto${S}share${S}dist${S}\$(DISTNAME)";
|
||||
my $perm_dir = $ExtUtils::MakeMaker::VERSION >= 6.52 ? '$(PERM_DIR)' : '755';
|
||||
$postamble .= <<"SHARE";
|
||||
config ::
|
||||
\t\$(NOECHO) \$(MKPATH) "$share"
|
||||
\t\$(NOECHO) \$(CHMOD) $perm_dir "$share"
|
||||
\t\$(NOECHO) \$(CP) "sqlite3.c" "$share${S}sqlite3.c"
|
||||
\t\$(NOECHO) \$(CP) "sqlite3.h" "$share${S}sqlite3.h"
|
||||
SHARE
|
||||
}
|
||||
return $postamble;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue