From: Reuben Thomas Date: Sat, 13 Jan 2018 22:25:25 +0000 (+0000) Subject: Fix make distcheck X-Git-Tag: v3.7~145 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e3c569bc20fbc81e201db733fd21e5451bd475ef;p=recode Fix make distcheck --- diff --git a/tests/Makefile.am b/tests/Makefile.am index a75a65e..a711083 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -28,12 +28,13 @@ t30_dumps.py t30_quoted.py t40_african.py t40_combine.py t40_testdump.py \ t40_utf7.py t40_utf8.py t50_methods.py t90_bigauto.py EXTRA_DIST = Recode.c Recode.pyx pytest common.py $(SUITE) -CLEANFILES = Recode@shlibext@ +CLEANFILES = Recode@shlibext@ Recode.body.c +DISTCLEANFILES = Recode.c PYTHON = python check-local: Recode@shlibext@ - export LD_LIBRARY_PATH=$(top_srcdir)/src/@objdir@ && \ + export LD_LIBRARY_PATH=$(top_builddir)/src/@objdir@ && \ RECODE=$(top_builddir)/src/recode PYTHONPATH=.:$(srcdir) \ $(PYTHON) $(srcdir)/pytest $(LIMIT) $(srcdir)/t*.py @@ -44,6 +45,6 @@ Recode@shlibext@: Recode.c setup.py Recode.c: Recode.pyx Makefile rm -f Recode.c && \ - cython -o Recode.body.c Recode.pyx && \ + cython -o Recode.body.c $(srcdir)/Recode.pyx && \ echo '#include "config.h"' > Recode.c && \ cat Recode.body.c >> Recode.c diff --git a/tests/setup.py.in b/tests/setup.py.in index 114d6c8..48f9464 100644 --- a/tests/setup.py.in +++ b/tests/setup.py.in @@ -19,8 +19,8 @@ try: Extension('Recode', ['Recode.c'], include_dirs=[top_builddir, os.path.join(top_srcdir, 'src'), os.path.join(top_srcdir, 'lib')], - library_dirs=[os.path.join(top_srcdir, 'src', '.libs'), - os.path.join(top_srcdir, 'lib', '.libs')], + library_dirs=[os.path.join(top_builddir, 'src', '.libs'), + os.path.join(top_builddir, 'lib', '.libs')], libraries=['recode', 'gnu']) ])