From 52d9fba0fa28be83571a267e30757f2699340d90 Mon Sep 17 00:00:00 2001 From: Benjamin Dauvergne Date: Tue, 20 Jul 2010 14:15:53 +0000 Subject: [PATCH] [Binding perl] fix broken distclean-local target The TOCOPY files need to be cleaned only for out of source directory builds. --- bindings/perl/Makefile.am | 5 +++-- 1 file 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