aboutsummaryrefslogtreecommitdiffstats
path: root/lang/python/Makefile.am
diff options
context:
space:
mode:
authorJustus Winter <[email protected]>2016-07-06 08:59:18 +0000
committerJustus Winter <[email protected]>2016-07-07 12:10:36 +0000
commit52efcf1ee9fc8ba4c6bd23d8fe4f5f7993ba9fb1 (patch)
tree237399ae677b95835d53b188047d7dac57493e54 /lang/python/Makefile.am
parentqt: Fix distcheck. (diff)
downloadgpgme-52efcf1ee9fc8ba4c6bd23d8fe4f5f7993ba9fb1.tar.gz
gpgme-52efcf1ee9fc8ba4c6bd23d8fe4f5f7993ba9fb1.zip
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 <[email protected]>
Diffstat (limited to 'lang/python/Makefile.am')
-rw-r--r--lang/python/Makefile.am21
1 files changed, 17 insertions, 4 deletions
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 <http://www.gnu.org/licenses/>.
-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: