From: Adam Dickmeiss Date: Tue, 25 May 2004 13:03:48 +0000 (+0000) Subject: Make rule to make .c from .i via swig X-Git-Tag: ZEBRA.1.3.16~107 X-Git-Url: http://git.indexdata.com/?p=idzebra-moved-to-github.git;a=commitdiff_plain;h=e2ec88e8006d368d52655aa2d552980773d15066 Make rule to make .c from .i via swig --- diff --git a/perl/Makefile.PL.in b/perl/Makefile.PL.in index d023d3a..df4abb8 100644 --- a/perl/Makefile.PL.in +++ b/perl/Makefile.PL.in @@ -3,8 +3,8 @@ use ExtUtils::MakeMaker; WriteMakefile( 'NAME' => 'IDZebra', 'OBJECT' => 'IDZebra_wrap.o zebra_perl.o' , - 'INC' => "-I../index -I../include @YAZINC@", - 'LIBS' => "-L../index -lzebra -L../data1 -ldata1 @TCL_LIB@ @YAZLIB@ @ZPERL_LIBS@", + 'INC' => "-I@top_srcdir@/index -I../include @YAZINC@", + 'LIBS' => "-L@top_srcdir@/index -lzebra -L../data1 -ldata1 @TCL_LIB@ @YAZLIB@ @ZPERL_LIBS@", 'OPTIMIZE' => '-g', # 'PREREQ_FATAL' => 1, 'PREREQ_PM' => { @@ -14,3 +14,10 @@ WriteMakefile( ); +sub MY::postamble { +'IDZebra_wrap.c: IDZebra.i + swig -perl IDZebra.i' + ; +} + +