summaryrefslogtreecommitdiffstats
path: root/perl
diff options
context:
space:
mode:
authorBenjamin Dauvergne <bdauvergne@entrouvert.com>2008-05-26 22:58:41 +0000
committerBenjamin Dauvergne <bdauvergne@entrouvert.com>2008-05-26 22:58:41 +0000
commit9a9c7ad7af704ddba6439b5bbdafba12ea5d1e1e (patch)
tree34041ae2621be1d256abc83127d2a647308a790b /perl
parentdab2625c95627db39ea62cbb86508e1bd408ecde (diff)
downloadlasso-9a9c7ad7af704ddba6439b5bbdafba12ea5d1e1e.tar.gz
lasso-9a9c7ad7af704ddba6439b5bbdafba12ea5d1e1e.tar.xz
lasso-9a9c7ad7af704ddba6439b5bbdafba12ea5d1e1e.zip
Make Makefile.PL use TOP_SRCDIR and TOP_BUILDDIR variables
Diffstat (limited to 'perl')
-rw-r--r--perl/Makefile.PL3
-rw-r--r--perl/Makefile.am2
2 files changed, 3 insertions, 2 deletions
diff --git a/perl/Makefile.PL b/perl/Makefile.PL
index 4c93b007..dc63ad87 100644
--- a/perl/Makefile.PL
+++ b/perl/Makefile.PL
@@ -13,7 +13,8 @@ if(-r '../lasso-src-config') {
$objects .= $lasso_libs;
}
-my $includes="-I$TOP_SRCDIR/lasso";
+my $includes="-I$TOP_BUILDDIR -I$TOP_SRCDIR";
+print $includes;
my $version=$ENV{VERSION};
# I'm forced to do this since BASEEXT is defined in a non-overridable method.
diff --git a/perl/Makefile.am b/perl/Makefile.am
index 22475025..266649b7 100644
--- a/perl/Makefile.am
+++ b/perl/Makefile.am
@@ -22,7 +22,7 @@ $(PERL_MAKEFILE): lasso.pm lasso_wrap.c
test -e Makefile.PL || test ! -e $(srcdir)/Makefile.PL || $(LN_S) $(srcdir)/Makefile.PL .
test -e lasso_wrap.c || test ! -e $(srcdir)/lasso_wrap.c || $(LN_S) $(srcdir)/lasso_wrap.c .
test -e lasso.pm || test ! -e $(srcdir)/lasso.pm || $(LN_S) $(srcdir)/lasso.pm .
- VERSION=$(VERSION) CC=$(CC) CFLAGS="$(AM_CPPFLAGS) $(AM_CFLAGS) $(SWIG_OPTS) $(CPPFLAGS) $(AM_STANDARD_CFLAGS)" $(PERL) $(srcdir)/Makefile.PL DESTDIR=$(DESTDIR) PREFIX=$(prefix) $(MAKE_PL_OPTS)
+ VERSION=$(VERSION) CC=$(CC) CFLAGS="$(AM_CPPFLAGS) $(AM_CFLAGS) $(SWIG_OPTS) $(CPPFLAGS) $(AM_STANDARD_CFLAGS)" $(PERL) $(srcdir)/Makefile.PL DESTDIR=$(DESTDIR) PREFIX=$(prefix) $(MAKE_PL_OPTS) TOP_SRCDIR=$(top_srcdir) TOP_BUILDDIR=$(top_builddir)
-perl install-perl: $(PERL_MAKEFILE)
target=`echo $@ | sed -e 's/-perl//'`; \