Fix python tests when building from tarball.

This commit is contained in:
John Ralls 2017-12-16 15:11:14 -08:00
parent 5da9e2f4c9
commit 70fe66c9fd

View File

@ -109,18 +109,23 @@ sqlite3test_SOURCES = sqlite3test.c
sqlite3test_LDADD = ${_gnucash_core_c_la_LIBADD}
sqlite3test_CPPFLAGS = ${_gnucash_core_c_la_CPPFLAGS}
PYTHON_LINK_FILES = \
$(pkgpyexec_DATA)
PYTHON_GNUCASH_LINK_FILES = $(pkgpyexec_DATA)
if BUILDING_FROM_VCS
PYTHON_LINK_FILES = $(filter-out gnucash_core_c.py,${pkgpyexec_DATA})
else
PYTHON_LINK_FILES = $(pkgpyexec_DATA)
endif
.py-links:$(PYTHON_LINK_FILES)
$(RM) -rf gnucash
mkdir -p gnucash
if GNUCASH_SEPARATE_BUILDDIR
for X in $(filter-out gnucash_core_c.py,${PYTHON_LINK_FILES}) ; do \
for X in ${PYTHON_LINK_FILES} ; do \
$(LN_S) -f ${srcdir}/$$X . ; \
done
endif
( cd gnucash; for file in $(PYTHON_LINK_FILES) ; do \
( cd gnucash; for file in $(PYTHON_GNUCASH_LINK_FILES) ; do \
$(LN_S) -f ../$$file .; \
done )