From 52efcf1ee9fc8ba4c6bd23d8fe4f5f7993ba9fb1 Mon Sep 17 00:00:00 2001 From: Justus Winter Date: Wed, 6 Jul 2016 10:59:18 +0200 Subject: python: Fix distcheck. * lang/python/INSTALL: Drop obsolete file. * lang/python/Makefile.am (EXTRA_DIST): Add missing files. (CLEANFILES): Remove generated files. (clean-local): Fix permissions of copied files. * lang/python/tests/Makefile.am (TESTS): Use our own setup and teardown scripts. (EXTRA_DIST): Add missing files. * lang/python/tests/final.py: New file. * lang/python/tests/initial.py: Likewise. Signed-off-by: Justus Winter --- lang/python/Makefile.am | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) (limited to 'lang/python/Makefile.am') diff --git a/lang/python/Makefile.am b/lang/python/Makefile.am index 8f0e74f9..527212a2 100644 --- a/lang/python/Makefile.am +++ b/lang/python/Makefile.am @@ -16,7 +16,13 @@ # You should have received a copy of the GNU Lesser General Public # License along with this program; if not, see . -EXTRA_DIST = README +EXTRA_DIST = \ + README \ + gpgme.i \ + helpers.c helpers.h \ + gpgme-h-clean.py \ + pyme + SUBDIRS = tests COPY_FILES = \ @@ -48,11 +54,18 @@ all-local: gpgme_wrap.c pyme/pygpgme.py copystamp CFLAGS="$(CFLAGS) -I$(top_srcdir)" \ $(PYTHON) setup.py build --verbose -clean-local: - rm -rf -- build gpgme.h errors.i gpgme_wrap.c pyme/pygpgme.py \ +CLEANFILES = gpgme.h errors.i gpgme_wrap.c pyme/pygpgme.py \ copystamp + +# Remove the rest. +# +# 'make distclean' clears the write bit, breaking rm -rf. Fix the +# permissions. +clean-local: + rm -rf -- build if test "$(srcdir)" != "$(builddir)" ; then \ - rm -rf pyme helpers.c helpers.h ; \ + find . -type d ! -perm -200 -exec chmod u+w {} ';' ; \ + rm -rf README pyme helpers.c helpers.h ; \ fi install-exec-local: -- cgit v1.2.3