perl: set DESTDIR and PREFIX at Makefile's creation

This commit is contained in:
Benjamin Dauvergne 2018-04-30 16:01:50 +02:00
parent aace9d3182
commit 39ca2d4833
1 changed files with 2 additions and 2 deletions

View File

@ -42,7 +42,7 @@ Makefile.perl: $(srcdir)/Makefile.PL Lasso.xs Lasso.pm
done; \
chmod -R u+rwX $(TOCOPY); \
fi;
$(AM_V_SUBMAKE) $(PERL) Makefile.PL INSTALLDIRS=vendor CCFLAGS="$(LASSO_XS_CFLAGS)" INC="-I. -I$(top_srcdir) -I$(srcdir)" LIBS="`$(top_builddir)/lasso-src-config --libs`" OPTIMIZE="-g" $(AM_V_SUBMAKE_POSTFIX)
$(AM_V_SUBMAKE) $(PERL) Makefile.PL INSTALLDIRS=vendor DESTDIR=$(DESTDIR) PREFIX=$(prefix) CCFLAGS="$(LASSO_XS_CFLAGS)" INC="-I. -I$(top_srcdir) -I$(srcdir)" LIBS="`$(top_builddir)/lasso-src-config --libs`" OPTIMIZE="-g" $(AM_V_SUBMAKE_POSTFIX)
Lasso.xs Lasso.pm: lang.py typemap-in typemap-out
$(AM_V_GEN) $(PYTHON) $(top_srcdir)/bindings/bindings.py -l perl --src-dir=$(top_srcdir)/lasso/ $(EXTRA_ARGS)
@ -59,7 +59,7 @@ clean-local:
-@if [ -f Makefile.perl ]; then make -f Makefile.perl clean; fi; rm -f Makefile.perl
install-exec-local: Makefile.perl
make -f Makefile.perl install DESTDIR=$(DESTDIR) PREFIX=$(prefix)
make -f Makefile.perl install
uninstall-local:
-@rm -rf `find $(DESTDIR)$(prefix) -name Lasso.pm -or -name Lasso.so -or -name Lasso.bs -or -name .packlist -or -name perllocal.pod`