From e2ec88e8006d368d52655aa2d552980773d15066 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Tue, 25 May 2004 13:03:48 +0000 Subject: [PATCH] Make rule to make .c from .i via swig --- perl/Makefile.PL.in | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) 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' + ; +} + + -- 1.7.10.4