summaryrefslogtreecommitdiffstats
path: root/bindings/perl
diff options
context:
space:
mode:
authorBenjamin Dauvergne <bdauvergne@entrouvert.com>2010-07-20 14:15:53 +0000
committerBenjamin Dauvergne <bdauvergne@entrouvert.com>2010-07-20 14:15:53 +0000
commit52d9fba0fa28be83571a267e30757f2699340d90 (patch)
tree1fa5ff8a5aa500f0d5f527bc98ade1e46ed4d086 /bindings/perl
parentb8c756db7d86b8414d4e072930847ac0077accfc (diff)
downloadlasso-52d9fba0fa28be83571a267e30757f2699340d90.tar.gz
lasso-52d9fba0fa28be83571a267e30757f2699340d90.tar.xz
lasso-52d9fba0fa28be83571a267e30757f2699340d90.zip
[Binding perl] fix broken distclean-local target
The TOCOPY files need to be cleaned only for out of source directory builds.
Diffstat (limited to 'bindings/perl')
-rw-r--r--bindings/perl/Makefile.am5
1 files changed, 3 insertions, 2 deletions
diff --git a/bindings/perl/Makefile.am b/bindings/perl/Makefile.am
index 9863f925..0795a05f 100644
--- a/bindings/perl/Makefile.am
+++ b/bindings/perl/Makefile.am
@@ -51,9 +51,10 @@ blib/arch/auto/Lasso/Lasso.so: Lasso.xs Lasso.pm Makefile.perl gobject_handling.
CLEANFILES = Lasso.pm Lasso.xs Lasso.so typemap Lasso.o Lasso.bs pm_to_blib Lasso.c
-DISTCLEANFILES = $(TOCOPY)
distclean-local:
- -@rm -rf $(TOCOPY)
+ -@if [ "$(srcdir)" != "$(builddir)" ]; then \
+ rm -rf $(TOCOPY); \
+ fi
clean-local:
-@if [ -f Makefile.perl ]; then make -f Makefile.perl clean; fi; rm -f Makefile.perl