summaryrefslogtreecommitdiffstats
path: root/bindings/perl
diff options
context:
space:
mode:
authorBenjamin Dauvergne <bdauvergne@entrouvert.com>2010-01-26 10:39:21 +0000
committerBenjamin Dauvergne <bdauvergne@entrouvert.com>2010-01-26 10:39:21 +0000
commit09221e389a39c0b782cfcac03f960a4367c339eb (patch)
tree17d35816f63704eb156fafd21b6d110699fef13e /bindings/perl
parent740b8191d4e659aedcefc2b96db1cbba65fb177c (diff)
downloadlasso-09221e389a39c0b782cfcac03f960a4367c339eb.tar.gz
lasso-09221e389a39c0b782cfcac03f960a4367c339eb.tar.xz
lasso-09221e389a39c0b782cfcac03f960a4367c339eb.zip
in bindings/perl/Makefile.am, change permission to make distcheck works
Diffstat (limited to 'bindings/perl')
-rw-r--r--bindings/perl/Makefile.am15
1 files changed, 11 insertions, 4 deletions
diff --git a/bindings/perl/Makefile.am b/bindings/perl/Makefile.am
index b482ad36..e097cd75 100644
--- a/bindings/perl/Makefile.am
+++ b/bindings/perl/Makefile.am
@@ -23,7 +23,10 @@ Makefile.perl: $(srcdir)/Makefile.PL Lasso.xs Lasso.pm
CFLAGS="$(LASSO_XS_CFLAGS)" TOP_SRCDIR="$(top_srcdir)" TOP_BUILDDIR="$(top_builddir)" \
SRCDIR="$(srcdir)" BUILDDIR=./ $(PERL) $(srcdir)/Makefile.PL PREFIX=$(prefix)
- -if [ "$(srcdir)" != "$(builddir)" ]; then cp -R $(srcdir)/t $(srcdir)/test.pl $(srcdir)/Makefile.PL $(srcdir)/LassoNode.xs $(builddir); fi
+ -if [ "$(srcdir)" != "$(builddir)" ]; then \
+ cp -R $(srcdir)/t $(srcdir)/test.pl $(srcdir)/Makefile.PL $(srcdir)/LassoNode.xs .; \
+ chmod -R u+rwx t test.pl Makefile.PL LassoNode.xs; \
+ fi
Lasso.xs Lasso.pm: lang.py typemap.in typemap.out
$(PYTHON) $(top_srcdir)/bindings/bindings.py -l perl --src-dir=$(top_srcdir)/lasso/ $(EXTRA_ARGS)
@@ -31,13 +34,17 @@ Lasso.xs Lasso.pm: lang.py typemap.in typemap.out
Lasso.so: Lasso.xs Lasso.pm Makefile.perl gobject_handling.c LassoNode.xs glist_handling.c
make -f Makefile.perl
-CLEANFILES = Lasso.pm Lasso.xs Lasso.so Makefile.perl typemap Lasso.o Lasso.bs pm_to_blib Lasso.c blib
+CLEANFILES = Lasso.pm Lasso.xs Lasso.so typemap Lasso.o Lasso.bs pm_to_blib Lasso.c blib
clean-local:
- -make -f Makefile.perl clean
- -if [ "$(srcdir)" != "$(builddir)" ]; then rm -rf `find -mindepth 1 -not -name Makefile`; fi
+ -@make -f Makefile.perl clean
+ -@rm -f Makefile.perl
+ -if [ "$(srcdir)" != "$(builddir)" ]; then rm -rf `find -H -mindepth 1 -not -name Makefile` t; fi
install-exec-local:
make -f Makefile.perl install DESTDIR=$(DESTDIR) PREFIX=$(prefix)
+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`
+
endif