[Binding perl] fix broken distclean-local target

The TOCOPY files need to be cleaned only for out of source directory
builds.
This commit is contained in:
Benjamin Dauvergne 2010-07-20 14:15:53 +00:00
parent b8c756db7d
commit 52d9fba0fa
1 changed files with 3 additions and 2 deletions

View File

@ -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