diff options
| author | Justus Winter <[email protected]> | 2016-08-02 16:42:26 +0000 | 
|---|---|---|
| committer | Justus Winter <[email protected]> | 2016-08-02 16:42:26 +0000 | 
| commit | 0bd7d8c1977183abc414e11aafa26a4f834ca2a5 (patch) | |
| tree | 811a4d0a7cdf75b842eff4c58daaa57ecc1716d6 | |
| parent | doc: Document the Assuan protocol. (diff) | |
| download | gpgme-0bd7d8c1977183abc414e11aafa26a4f834ca2a5.tar.gz gpgme-0bd7d8c1977183abc414e11aafa26a4f834ca2a5.zip | |
python: Fix build system integration.
* lang/python/Makefile.am: Be more careful when cleaning the build
directory, we must not delete the generated file 'pyme/version.py'.
Signed-off-by: Justus Winter <[email protected]>
| -rw-r--r-- | lang/python/Makefile.am | 20 | 
1 files changed, 17 insertions, 3 deletions
| diff --git a/lang/python/Makefile.am b/lang/python/Makefile.am index f0df800b..8e18dab3 100644 --- a/lang/python/Makefile.am +++ b/lang/python/Makefile.am @@ -32,14 +32,25 @@ COPY_FILES = \  	$(srcdir)/README \  	$(srcdir)/MANIFEST.in \  	$(srcdir)/gpgme-h-clean.py \ -	$(srcdir)/pyme \  	$(srcdir)/examples \  	$(srcdir)/helpers.c $(srcdir)/helpers.h $(srcdir)/private.h +COPY_FILES_PYME = \ +	$(srcdir)/pyme/callbacks.py \ +	$(srcdir)/pyme/constants \ +	$(srcdir)/pyme/core.py \ +	$(srcdir)/pyme/errors.py \ +	$(srcdir)/pyme/__init__.py \ +	$(srcdir)/pyme/results.py \ +	$(srcdir)/pyme/util.py +  # For VPATH builds we need to copy some files because Python's  # distutils are not VPATH-aware. -copystamp: $(COPY_FILES) -	if test "$(srcdir)" != "$(builddir)" ; then cp -r $^ . ; fi +copystamp: $(COPY_FILES) $(COPY_FILES_PYME) +	if test "$(srcdir)" != "$(builddir)" ; then \ +	  cp -r $(COPY_FILES) . ; \ +	  cp -r $(COPY_FILES_PYME) pyme ; \ +	fi  	touch $@  all-local: copystamp @@ -70,6 +81,9 @@ clean-local:  	if test "$(srcdir)" != "$(builddir)" ; then \  	  find . -type d ! -perm -200 -exec chmod u+w {} ';' ; \  	  for F in $(COPY_FILES); do rm -rf -- `basename $$F` ; done ; \ +	  for F in $(COPY_FILES_PYME); do \ +	      rm -rf -- pyme/`basename $$F` ; \ +	  done ; \  	fi  install-exec-local: | 
