Make rule to make .c from .i via swig
authorAdam Dickmeiss <adam@indexdata.dk>
Tue, 25 May 2004 13:03:48 +0000 (13:03 +0000)
committerAdam Dickmeiss <adam@indexdata.dk>
Tue, 25 May 2004 13:03:48 +0000 (13:03 +0000)
perl/Makefile.PL.in

index d023d3a..df4abb8 100644 (file)
@@ -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'
+       ;
+}
+
+